GridBroadphase Class
Broadphase that uses axis-aligned bins.
Constructor
GridBroadphase
(
-
[options]
Parameters:
-
[options]Object optional-
[xmin]Number optionalLower x bound of the grid
-
[xmax]Number optionalUpper x bound
-
[ymin]Number optionalLower y bound
-
[ymax]Number optionalUpper y bound
-
[nx]Number optionalNumber of bins along x axis
-
[ny]Number optionalNumber of bins along y axis
-
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:
setWorld
(
-
world
Set the world that we are searching for collision pairs in
Parameters:
-
worldWorld
Properties
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().
