NewtonDestroyBody

From Newton Wiki
Revision as of 08:02, 10 June 2019 by WikiSysop (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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