NewtonDestroy
NewtonDestroy
void NewtonDestroy (const NewtonWorld* const newtonWorld)
Usage
Destroys the entire NewtonWorld, and all bodies / joints inside it.
Parameters
- const NewtonWorld *newtonWorld - is the pointer to the Newton world.
Return
- (Procedure)
Description
When this command is called, it goes through and destroys all of the bodies and joints in the world, possibly calling their destructor callbacks in the process. it will also free up any memory used by the NewtonWorld.
Remarks
- This function will destroy the entire Newton world.
- Do not delete any application pointers to Newton worlds; they are completely destroyed by a call to this function, so NULL them afterwards.
See also
NewtonCreate NewtonBodySetDestructorCallback NewtonJointSetDestructor NewtonDestroyAllBodies