mirror of
https://github.com/open-goal/jak-project
synced 2026-05-23 06:54:31 -04:00
e2f14f459d
After verifying so many things about the BVH trees being correct, I noticed a pattern across missing collision: all missing collision was always a face-containing child that was inside a node alongside another non-face-containing parent. This minimalist fix simply adds a wrapper so that when a face-containing child exists alongside a non-face-containing parent, ie. `if (has_leaves && has_not_leaves)`, then it simply wraps the face-containing node in another parent, so that face-containing spheres and non-face-containing parents don't co-exist in the same node. The result: restored collision for missing sections in custom levels.