SAPBroadphase Class
Sweep and prune broadphase along one axis.
Constructor
SAPBroadphase
()
Item Index
Properties
Methods
boundingRadiusCheck
(
Boolean
-
bodyA
-
bodyB
Check whether the bounding radius of two bodies overlap.
Returns:
Boolean:
canCollide
(
Boolean
-
bodyA
-
bodyB
Check whether two bodies are allowed to collide at all.
Returns:
Boolean:
sortAxisList
(
Array
-
a
-
axisIndex
Sorts bodies along an axis.
Parameters:
-
a
Array -
axisIndex
Number
Returns:
Array:
Properties
axisIndex
Number
The axis to sort along.
axisList
Array
List of bodies currently in the broadphase.
boundingVolumeType
Number
The bounding volume type to use in the broadphase algorithms.
result
Array
The resulting overlapping pairs. Will be filled with results during .getCollisionPairs().