API Docs for: 0.4.0
Show:

NaiveBroadphase Class

Naive broadphase implementation. Does N^2 tests.

Constructor

NaiveBroadphase

()

Item Index

Properties

Methods

boundingRadiusCheck

(
  • bodyA
  • bodyB
)
Boolean

Check whether the bounding radius of two bodies overlap.

Parameters:

Returns:

Boolean:

getCollisionPairs

(
  • world
)
Array

Inherited from Broadphase but overwritten in src/collision/NaiveBroadphase.js:22

Get the colliding pairs

Parameters:

Returns:

Array:

Properties

result

Array

The resulting overlapping pairs. Will be filled with results during .getCollisionPairs().