aboutsummaryrefslogtreecommitdiffstats
path: root/src/entities/samanthasSpot.c
blob: 2022f3795b60dc29c173caa1c1a102991882d12a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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 + TOUCHING_OFFSET, 0.0}),
            1.0,
            WHITE);
}