noa.physics - Wrapper module for the physics engine.
noa.physics
This module extends voxel-physics-engine, so turn on "Inherited" to see its APIs here, or view the base module for full docs.
This module uses the following default options (from the options object passed to the Engine):
{ gravity: [0, -10, 0], airDrag: 0.1, fluidDrag: 0.4, fluidDensity: 2.0, minBounceImpulse: .5, // cutoff for a bounce to occur} Copy
{ gravity: [0, -10, 0], airDrag: 0.1, fluidDrag: 0.4, fluidDensity: 2.0, minBounceImpulse: .5, // cutoff for a bounce to occur}
Adds a physics body to the simulation
Removes a body, by direct reference
Generated using TypeDoc
noa.physics
- Wrapper module for the physics engine.This module extends voxel-physics-engine, so turn on "Inherited" to see its APIs here, or view the base module for full docs.
This module uses the following default options (from the options object passed to the Engine):