aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.h
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-07-10 14:43:38 +0000
committernathan <nathansmith@disroot.org>2025-07-10 14:43:38 +0000
commit93f8122959df62c82c455dee4c8bb6d138e7337d (patch)
treef0d777d60d0db309a51d7ca5c80c8709fdf4df5c /src/world.h
parent524bb54a09e02a45839dcd8c13b66bcdbfce4670 (diff)
downloadFindThings-93f8122959df62c82c455dee4c8bb6d138e7337d.tar.gz
FindThings-93f8122959df62c82c455dee4c8bb6d138e7337d.tar.bz2
FindThings-93f8122959df62c82c455dee4c8bb6d138e7337d.zip
Tiny progress (mostly the same as leaf nodes tbh)
Diffstat (limited to 'src/world.h')
-rw-r--r--src/world.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/world.h b/src/world.h
index 60cbe9f..0ccb5c2 100644
--- a/src/world.h
+++ b/src/world.h
@@ -22,8 +22,10 @@ typedef int16_t WorldUID;
typedef struct BVHNode {
BoundingBox box;
+ Vector3 position;
WorldUID entities[BVH_MAX]; // Only for leafs.
struct BVHNode* branches[BVH_MAX_BRANCH_COUNT];
+ int branchCount;
} BVHNode;
typedef struct {