diff options
Diffstat (limited to 'src/entities/samanthasSpot.c')
| -rw-r--r-- | src/entities/samanthasSpot.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/entities/samanthasSpot.c b/src/entities/samanthasSpot.c new file mode 100644 index 0000000..0205e46 --- /dev/null +++ b/src/entities/samanthasSpot.c @@ -0,0 +1,19 @@ +#include "samanthasSpot.h" + +void initSamanthasSpot(Entity* entity) +{ + entity->box = (BoundingBox){ + .min = (Vector3){-SAMANTHAS_SPOT_SIZE, -SAMANTHAS_SPOT_HEIGHT, + -SAMANTHAS_SPOT_SIZE}, + .max = (Vector3){SAMANTHAS_SPOT_SIZE, SAMANTHAS_SPOT_HEIGHT, + SAMANTHAS_SPOT_SIZE}, + }; +} + +void updateSamanthasSpot(Entity* entity, Game* game) +{ + DrawModel(game->world.samanthasSpotFloor, + Vector3Add(entity->position, + (Vector3){0.0, -SAMANTHAS_SPOT_HEIGHT + 0.01, 0.0}), + 1.0, WHITE); +} |
