void NewtonDestroy (const NewtonWorld* const newtonWorld)
Destroys the entire NewtonWorld, and all bodies / joints inside it.
- const NewtonWorld *newtonWorld - is the pointer to the Newton world.
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.
- 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.