destroyBodiesOnRemove property

bool destroyBodiesOnRemove
getter/setter pair

If true, all bodies will be destroyed when the world is removed from the component tree. Set this to false if you want to keep the bodies state for later, if you for example plan to add the world back to the component tree.

Implementation

bool destroyBodiesOnRemove = true;