diff options
Diffstat (limited to 'src/entity.c')
-rw-r--r-- | src/entity.c | 15 |
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; |