Optional
allowfalse
Optional
broadphaseThe broadphase algorithm to use.
NaiveBroadphase
Optional
frictionGravity to use when approximating the friction max force (mumassgravity). If undefined, global gravity will be used.
Optional
gravityThe gravity of the world.
Optional
maxOptional
quatSet to true to use fast quaternion normalization. It is often enough accurate to use. If bodies tend to explode, set to false.
false
Optional
quatHow often to normalize quaternions. Set to 0 for every step, 1 for every second etc.. A larger value increases performance. If bodies tend to explode, set to a smaller value (zero to be sure nothing can go wrong).
0
Optional
solverThe solver algorithm to use.
GSSolver
Makes bodies go to sleep when they've been inactive.