diff options
author | nathan <nathansmith@disroot.org> | 2025-07-27 10:29:07 +0000 |
---|---|---|
committer | nathan <nathansmith@disroot.org> | 2025-07-27 10:29:07 +0000 |
commit | 49a0487a9c02a4bcd9da965400e393820ba6372f (patch) | |
tree | 877fc60f249119704b60800e2b3d94895ee5a9f6 /src/player.c | |
parent | 68a46c5d8e92218622c93bd3b5356c25c079fef4 (diff) | |
download | FindThings-49a0487a9c02a4bcd9da965400e393820ba6372f.tar.gz FindThings-49a0487a9c02a4bcd9da965400e393820ba6372f.tar.bz2 FindThings-49a0487a9c02a4bcd9da965400e393820ba6372f.zip |
Bush
Diffstat (limited to 'src/player.c')
-rw-r--r-- | src/player.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/player.c b/src/player.c index fbf404d..f32d8bb 100644 --- a/src/player.c +++ b/src/player.c @@ -83,22 +83,22 @@ void updatePlayer(Player* player, Game* game) camera->position = player->position; camera->target = Vector3Add(player->position, player->direction); -/* #ifdef FT_DEBUG_MODE */ -/* Ray ray = (Ray){ */ -/* .position = player->position, */ -/* .direction = player->direction */ -/* }; */ +#ifdef FT_DEBUG_MODE + 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, &tests); -/* printf("%d\n", tests); */ + //printf("%d\n", tests); -/* if (uid != -1) */ -/* { */ -/* DrawBoundingBox(game->world.entities[uid].box, RED); */ -/* } */ -/* #endif */ + if (uid != -1) + { + DrawBoundingBox(game->world.entities[uid].box, RED); + } +#endif } |