How to properly clean up?

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

How to properly clean up?

Postby team23 » Thu Sep 11, 2008 11:25 pm

I'm looking for information on what the proper method for cleaning Body/TreeCollisions would be when I want to remove an object. I'm using a Python wrapper of the library so I may not be seeing all functions, but I can't find anything under the World, Body or TreeCollision objects.

Sorry if this is a FAQ, I didn't see it there and the board doesn't allow me to search for "clean" as it's too common a word.
Posts: 1
Joined: Thu Sep 11, 2008 11:21 pm

Re: How to properly clean up?

Postby Julio Jerez » Fri Sep 12, 2008 8:57 am

you can call NewtonDestroyBody(const NewtonWorld* newtonWorld, const NewtonBody* body);

and it will delete teh body and release teh collision
Julio Jerez
Posts: 11155
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests