Difference between revisions of "NewtonDestroyBody"

From Newton Wiki
Jump to: navigation, search
 
m (1 revision imported)
 
(No difference)

Latest revision as of 08:02, 10 June 2019

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