aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/world.c2
-rw-r--r--src/world.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/world.c b/src/world.c
index ff890bd..29da6a2 100644
--- a/src/world.c
+++ b/src/world.c
@@ -204,7 +204,7 @@ BVHNode buildWorldBVHTree(BVHNode* nodes, size_t nodesSize,
}
float distance = 0.0;
- BoundingBox box = nodes[nodeIndex].box;
+ BoundingBox box = node.branches[0]->box;
// Get distance and bounding box.
for (int index = 0; index < branchIndex; ++index)
diff --git a/src/world.h b/src/world.h
index 00f23c6..51631e9 100644
--- a/src/world.h
+++ b/src/world.h
@@ -8,7 +8,7 @@
#define WORLD_H
#define BVH_MAX 2 // Max entities per node.
-#define BVH_MAX_BRANCH_COUNT 5
+#define BVH_MAX_BRANCH_COUNT 4
#define BVH_BOX_MAX 100.0
#define WORLD_ENTITY_MAX 1000