Axis to sort the bodies along. Set to 0 for x axis, and 1 for y axis. For best performance, pick the axis where bodies are most distributed.
List of bodies currently in the broadphase.
Set to true if the objects in the world moved.
If set to true, the broadphase uses bounding boxes for intersection tests, else it uses bounding spheres.
The world to search in.
Computes the variance of the body positions and estimates the best axis to use.
Will automatically set property axisIndex
.
Change the world
Sweep and prune broadphase along one axis.