Broadphase Class
Base class for broadphase implementations.
Constructor
Broadphase
()
Item Index
Methods
Methods
boundingRadiusCheck
(
Boolean
-
bodyA
-
bodyB
Check whether the bounding radius of two bodies overlap.
Returns:
Boolean:
getCollisionPairs
(
Array
-
world
Get all potential intersecting body pairs.
Parameters:
-
world
WorldThe world to search in.
Returns:
Array:
An array of the bodies, ordered in pairs. Example: A result of [a,b,c,d] means that the potential pairs are: (a,b), (c,d).