Chipmunk 2.5D Physics
An FFI to the Chipmunk 2.5D rigid body physics engine.
This module re-exports (planet jaymccarthy/chipmunk/chipmunk-ffi) with a few changes and helpers.
First, cpInitChipmunk and cpResetShapeIdCounter are called.
Second, the following are provided:
Returns a unique integer to use as a collision type.
Adds a collision pair function where the callback has less work to do.
|(cpSpaceSetDefaultCollisionPairFunc|| ||space|| || || || |
| || ||callback)|| ||→|| ||void|
| space : cpSpace?|
Sets the default collision pair function where the callback has less work to do.
|(cpvadd x ...) → cpVect?|
| x : cpVect?|
Variable arity cpvadd.
This provides a straight-forward transliteration of the Chipmunk API. Refer to its documentation and headers for more details.