A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by tod » Sun Jul 08, 2012 5:50 am
I just realized that my player collides with my water trigger volume. I'm using Newton 2.29.
Can someone confirm this? Is this fixed? Are there any workarounds?
On a related note, I tried setting a material to my player body with the hope of disabling collisions on the Player/Water material pair, but that did nothing, I guess because the player body seems to be wrapped in another cylinder. Is it impossible to set materials for the player?
-
tod
-
- Posts: 29
- Joined: Thu Mar 04, 2010 4:39 pm
by tod » Sun Jul 08, 2012 2:39 pm
- Code: Select all
NewtonCollision* c1 = NewtonBodyGetCollision(body);
if(NewtonCollisionIsTriggerVolume(c1))
{
return 0;
}
Adding this to both prefilter callbacks eliminates collisions with trigger volumes. No idea yet how I will be able to actually trigger an event though.
-
tod
-
- Posts: 29
- Joined: Thu Mar 04, 2010 4:39 pm
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 1 guest