aboutsummaryrefslogtreecommitdiffstats
path: root/src/entity.c
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-10-11 11:03:05 +0000
committernathan <nathansmith@disroot.org>2025-10-11 11:03:05 +0000
commitf11daf2fdc3f3e090efbbc6beec8d3af831e8280 (patch)
tree6020a0dc886e97be91c3aecd0f670712849db50a /src/entity.c
parent19e8c4da3820e3d3e4af10d338f1c03ad377de81 (diff)
downloadFindThings-f11daf2fdc3f3e090efbbc6beec8d3af831e8280.tar.gz
FindThings-f11daf2fdc3f3e090efbbc6beec8d3af831e8280.tar.bz2
FindThings-f11daf2fdc3f3e090efbbc6beec8d3af831e8280.zip
More john and ron are correct size now
Diffstat (limited to 'src/entity.c')
-rw-r--r--src/entity.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/entity.c b/src/entity.c
index 0c0b914..018b450 100644
--- a/src/entity.c
+++ b/src/entity.c
@@ -78,16 +78,13 @@ Entity createEntity(EntityId id, Vector3 position)
break;
// TODO: do the thing
case JOHN:
+ case RON: // John and Ron ARE NOT the same person.
entity.box = (BoundingBox){
- .min = (Vector3){-1.0, -1.0, -1.0},
- .max = (Vector3){1.0, 1.0, 1.0}
- };
-
- break;
- case RON:
- entity.box = (BoundingBox){
- .min = (Vector3){-1.0, -1.0, -1.0},
- .max = (Vector3){1.0, 1.0, 1.0}
+ .min = (Vector3){-SHOPKEEPER_WIDTH, -SHOPKEEPER_HEIGHT,
+ -SHOPKEEPER_THICKNESS},
+ .max = (Vector3){SHOPKEEPER_WIDTH, SHOPKEEPER_HEIGHT,
+ SHOPKEEPER_THICKNESS}
+
};
break;