A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by Bird » Wed Nov 30, 2011 11:37 am
Is there a way to remove a primitive from a CompoundCollision during the simulation? I can see that there's a dgCollision::RemoveCollision() function but I don't know how to get the dgNodeBase* node parameter that it requires.
-Bird
-
Bird
-
- Posts: 636
- Joined: Tue Nov 22, 2011 1:27 am
by Julio Jerez » Wed Nov 30, 2011 12:42 pm
the engine has the support, but it is not exposed via the Newton interface at this time. It is use by the detruction demo interally.
class dgCollisionCompound: public dgCollision
void AddCollision (dgCollisionConvex* part);
// void RemoveCollision (dgCollisionConvex* part);
void RemoveCollision (dgNodeBase* node);
It is one the new features for core 300, the ability to add and remove subshape to a collision trees, and compound on the flight.
I will try to get that in too. But again I am fixing the get conncetd segment bug so I can not check in righ now.
it will take a day or two unti I get all those in.
-
Julio Jerez
- Moderator

-
- Posts: 12426
- 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 1 guest