Naive broadphase implementation, used in lack of better ones.
The naive broadphase looks at all possible pairs without restriction, therefore it has complexity N^2 (which is bad)
Remove useless constructor
Set to true if the objects in the world moved.
If set to true, the broadphase uses bounding boxes for intersection tests, else it uses bounding spheres.
The world to search for collisions in.
Returns all the bodies within an AABB.
An array to store resulting bodies in.
Get all the collision pairs in the physics world
Check if the bounding boxes of two bodies are intersecting.
Check if the bounding spheres of two bodies are intersecting.
bodyA is appended to this array if intersection
bodyB is appended to this array if intersection
Check if the bounding volumes of two bodies intersect.
Removes duplicate pairs from the pair arrays.
Check if a body pair needs to be intersection tested at all.
To be implemented by subcasses
Check if the bounding spheres of two bodies overlap.
Naive broadphase implementation, used in lack of better ones.
The naive broadphase looks at all possible pairs without restriction, therefore it has complexity N^2 (which is bad)