aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.c')
-rw-r--r--src/player.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/player.c b/src/player.c
index de1eaa1..bb63903 100644
--- a/src/player.c
+++ b/src/player.c
@@ -82,4 +82,19 @@ void updatePlayer(Player* player, Game* game)
// Apply camera.
camera->position = player->position;
camera->target = Vector3Add(player->position, player->direction);
+
+ /* Ray ray = (Ray){ */
+ /* .position = player->position, */
+ /* .direction = player->direction */
+ /* }; */
+
+ /* int tests; */
+ /* WorldUID uid = castRayAtWorld(&game->world, ray, &tests); */
+
+ /* printf("%d\n", tests); */
+
+ /* if (uid != -1) */
+ /* { */
+ /* DrawBoundingBox(game->world.entities[uid].box, RED); */
+ /* } */
}