API Docs for: 0.3.0
Show:

Broadphase Class

Base class for broadphase implementations.

Constructor

Broadphase

()

Methods

boundingRadiusCheck

(
  • bodyA
  • bodyB
)
Boolean

Check whether the bounding radius of two bodies overlap.

Parameters:

Returns:

Boolean:

getCollisionPairs

(
  • world
)
Array

Get all potential intersecting body pairs.

Parameters:

  • world World

    The 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).