[Solved] Simple question: what objects do we need to destroy

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

[Solved] Simple question: what objects do we need to destroy

Postby Devwave » Tue Nov 11, 2014 11:53 pm

Do we need to destroy Joints, Bodies, Collisions, ...?
Need this answer specially for Joints.

Ty
Last edited by Devwave on Wed Nov 12, 2014 8:32 pm, edited 1 time in total.
Devwave
 
Posts: 6
Joined: Tue Nov 11, 2014 11:46 pm

Re: Simple question: what objects do we need to destroy?

Postby Julio Jerez » Wed Nov 12, 2014 10:27 am

yes there are function for that.

if you destroy a body and the body is connected to a joint, the joint gets destroyed.
the body and the joint has OnDestroy callback notifications.
on exit all joints , all bodies and all collision shape are destroyed.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: [Solved] Simple question: what objects do we need to des

Postby Devwave » Wed Nov 12, 2014 8:32 pm

Thank you very much
Devwave
 
Posts: 6
Joined: Tue Nov 11, 2014 11:46 pm

Re: [Solved] Simple question: what objects do we need to des

Postby manny » Thu Nov 13, 2014 4:24 am

Locking this then :)
http://www.instaLOD.io - InstaLOD - State of the art 3D optimization
manny
Site Admin
Site Admin
 
Posts: 131
Joined: Tue Feb 11, 2014 6:49 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests