NewtonDestroyBody
NewtonDestroyBody
void NewtonDestroyBody( const NewtonBody* bodyPtr)
Usage
Destroy a rigid body.
Parameters
- const NewtonBody *bodyPtr - pointer to the body to be destroyed.
Return
- Nothing.
Remarks
- 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. |