aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.c
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-10-25 05:24:51 +0000
committernathan <nathansmith@disroot.org>2025-10-25 05:24:51 +0000
commite7ef990a0a3b1ddf40a2f0d517e8eb4e261b1f80 (patch)
tree41eca7b2c9ec626b6522508efe400923165d624d /src/player.c
parent8874e4a585d66c16299ad45e79ea6c55960dee02 (diff)
downloadFindThings-e7ef990a0a3b1ddf40a2f0d517e8eb4e261b1f80.tar.gz
FindThings-e7ef990a0a3b1ddf40a2f0d517e8eb4e261b1f80.tar.bz2
FindThings-e7ef990a0a3b1ddf40a2f0d517e8eb4e261b1f80.zip
Lots of little things I should have done already
Diffstat (limited to 'src/player.c')
-rw-r--r--src/player.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/player.c b/src/player.c
index 417c7e1..7da0b01 100644
--- a/src/player.c
+++ b/src/player.c
@@ -84,21 +84,21 @@ void updatePlayer(Player* player, Game* game)
camera->target = Vector3Add(player->position, player->direction);
/* #ifdef FT_DEBUG_MODE */
-/* Ray ray = (Ray){ */
-/* .position = player->position, */
-/* .direction = player->direction */
-/* }; */
+ Ray ray = (Ray){
+ .position = player->position,
+ .direction = player->direction
+ };
-/* DrawRay(ray, YELLOW); */
+ DrawRay(ray, YELLOW);
-/* int tests; */
-/* WorldUID uid = castRayAtWorld(&game->world, ray, &tests); */
+ int tests;
+ WorldUID uid = castRayAtWorld(&game->world, ray, true, &tests);
-/* //printf("%d\n", tests); */
+ //printf("%d\n", tests);
-/* if (uid != -1) */
-/* { */
-/* DrawBoundingBox(game->world.entities[uid].box, RED); */
-/* } */
+ if (uid != -1)
+ {
+ DrawBoundingBox(game->world.entities[uid].box, RED);
+ }
/* #endif */
}