aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-07-24 21:58:12 +0000
committernathan <nathansmith@disroot.org>2025-07-24 21:58:12 +0000
commitc4648528b61142c42d44f20371b07c9f3b23cf1b (patch)
tree5c11dc45632b0f78b4d57d932f5402f1e0417c83
parent9d4afb36347a49251f0968e898089d4ff46390ed (diff)
downloadFindThings-c4648528b61142c42d44f20371b07c9f3b23cf1b.tar.gz
FindThings-c4648528b61142c42d44f20371b07c9f3b23cf1b.tar.bz2
FindThings-c4648528b61142c42d44f20371b07c9f3b23cf1b.zip
BVH is actually working great!!!! (even with bad overlap)
-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); */
+ /* } */
}