- type
- class
- requires
- nape-hacks module.
Methods for manual sleeping and insertion of sleeping objects to a Space.
Haxe users can make use of the 'using' keyword to permit usage like:
Haxe users can make use of the 'using' keyword to permit usage like:
body.sleepBody(); space.addSleepingBody(body);As opposed to the more verbose:
ForcedSleep.sleepBody(body); ForcedSleep.addSleepingBody(space, body);
Static Methods
static function addSleepingBody(space:nape.space.Space, body:nape.phys.Body):Void
