aboutsummaryrefslogtreecommitdiffstats
path: root/src/entities/samanthasSpot.c
blob: 0205e46103e79d10d0590363a5bf4bb4a3555838 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
}