TreeCollision

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

TreeCollision

Postby 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:
Image

I hope you understand what I mean. Sorry for my poor english :oops:

Zero
Image
Zero
 
Posts: 10
Joined: Thu Jan 01, 2009 12:49 am

Re: TreeCollision

Postby Zero » Sun Jan 04, 2009 1:16 pm

Pls can someone help me?
Image
Zero
 
Posts: 10
Joined: Thu Jan 01, 2009 12:49 am

Re: TreeCollision

Postby 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
Moderator
 
Posts: 11154
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 7 guests