A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by Zero » Fri Jan 02, 2009 7:23 pm
Hi
I want to test the Collision between a TreeCollision and a CollisionBox for example. But this wont work ...
If I test the Collision between two CollisionBox`s, this work.
Before I test the Collision I call NewtonCollisionUpdate() and then I use this function NewtonBodyGetFirstContactJoint.
And then I have a second question, how can I use a RayCast in a TreeCollision to get the CollisionPoint with this red floor:
I hope you understand what I mean. Sorry for my poor english
Zero
-
Zero
-
- Posts: 10
- Joined: Thu Jan 01, 2009 12:49 am
by Zero » Sun Jan 04, 2009 1:16 pm
Pls can someone help me?
-
Zero
-
- Posts: 10
- Joined: Thu Jan 01, 2009 12:49 am
by Julio Jerez » Sun Jan 04, 2009 1:42 pm
my guess is tah teh tree coolision is wrong.
you need to implement debug display so that you can see where the collision tree is in the world.
the ray case has a callback, you can check the body and my checking teh susre data you can detrmine of a collision tree was hit.
if the collison tree was hit you can also find the face hit.
-
Julio Jerez
- Moderator
-
- Posts: 12249
- 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 28 guests