Overview

API Documentation for Nape Physics Library

module
nape
dependencies
None
Base library of Nape, including everything required for a simulation together with geometric utilities and debug drawing.

Various constraints included with the UserConstraint API for hand-written custom constraints.

UML Diagram of relationships between Nape classes in the core library:



module
nape-hacks
dependencies
nape
nape-hacks provides additional methods permitting manual sleeping of objects in a Space as well as addition of already sleeping objects to a Space.

This is not included in the core library as it goes against the mantra of Nape where sleeping is something that is handled completely by Nape with no user input necessary.

See: ForcedSleep


module
nape-symbolic
dependencies
nape, parsex (Haxe only)
nape-symbolic provides an additional constraint type built ontop of the UserConstraint API. This constraint takes as input a single String written in a light weight DSL permitting rapid prototyping of complex custom constraints which may be used, or further transformed by hand into a hand-optimised UserConstraint.

See: SymbolicConstraint