NewtonDestroyBody

From Newton Wiki
Jump to: navigation, search

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.


See also

NewtonCreateDynamicBody