deltaluca / nape

Haxe/AS3 Physics Engine
http://napephys.com
Other
542 stars 77 forks source link

Add something to the API to allow forced sleeping of bodies. #33

Closed deltaluca closed 12 years ago

deltaluca commented 12 years ago

Use case in large worlds to allow areas to be sleeping immediately at start that are no-where near a player.

I would personally prefer to simply not 'add' the bodies, but I guess this is a bit more automatic.

Not sure what API should exist for this... allow body/constraint.sleeping to be mutable? Probably.

deltaluca commented 12 years ago

see nape-hacks.