A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by Aphex » Wed Mar 17, 2010 11:48 am
Hi all,
Is there a way of updating a body's compound collision dynamically (i.e. adding or removing primitives), rather than deleting the body and re-creating it all over?
-
Aphex
-
- Posts: 144
- Joined: Fri Jun 18, 2004 6:08 am
- Location: UK
-
by Julio Jerez » Wed Mar 17, 2010 12:16 pm
at this time not, few peopel have requested that option.
Maybe I can add an option like Dynamics Compount on creation,
Coumpound collison are optimuze is a way to make teh querues the most effiecient, But is it a time consuming operatuion.
However is we settle fo a soem what less efficient queires then it is possible to make then dynamics using incremental Tree Rotations simulat to Red Black tree rotation.
Removing is very fast, adding is what makes it a problem.
I will add that option for 2.19, something like.
NewtonCollision* NewtonCreateCompoundCollision (const NewtonWorld* newtonWorld, int count, NewtonCollision* const collisionPrimitiveArray[], int shapeID, int type);
Where type is:
0 static constructions
1 dynamic constructions
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Aphex » Wed Mar 17, 2010 3:11 pm
Ah ok cheers.
I'd settle for just removing them for now

I want to simulate sub-parts of an object being destroyed.
-
Aphex
-
- Posts: 144
- Joined: Fri Jun 18, 2004 6:08 am
- Location: UK
-
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 1 guest