void NewtonDestroyBody( const NewtonBody* bodyPtr)
Destroy a rigid body.
- const NewtonBody *bodyPtr - pointer to the body to be destroyed.
- This function will decrease the reference count of the collision geometry by one. If the reference count reaches zero, then the collision geometry will be destroyed. This function will destroy all joints associated with this body.
|If this function is called from inside a simulation step (forceandtorque or transform callback) newton will crash - this is not supported.|