Octree structure where you can insert, remove and check collision between meshes.
E.g.: Moving Sphere/Capsule:
bsp.check(Vector3 oldPosition, Vector3 newPosition, radius);
Dynamic size is a must. If a triangle point or a particule is outside the root node (AABB) we need a bigger node. Recreate the tree.
Code can be found at propan-storage
Octree structure where you can insert, remove and check collision between meshes.
E.g.: Moving Sphere/Capsule:
bsp.check(Vector3 oldPosition, Vector3 newPosition, radius);Dynamic size is a must. If a triangle point or a particule is outside the root node (AABB) we need a bigger node. Recreate the tree.
Code can be found at propan-storage
BB.intersect(bb) could be slower (don't use it).