NewtonTreeCollisionSetUserRayCastCallback

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

NewtonTreeCollisionSetUserRayCastCallback

Postby Bird » Wed May 21, 2014 7:44 pm

In some cases I need to find the barycentric cords at a ray/triangle intersection in a static mesh. I found this thread which was very helpful
http://newtondynamics.com/forum/viewtopic.php?f=9&t=6868&p=47617&hilit=barycentric#p47608

But after building the collision tree and setting the NewtonTreeCollisionSetUserRayCastCallback (), that callback never gets called after any calls to NewtonWorldRayCast() with rays that I'm sure intersect the mesh I'm making these ray trace calls when the engine is not updating, could that be the problem?

-Bird
Bird
 
Posts: 636
Joined: Tue Nov 22, 2011 1:27 am

Re: NewtonTreeCollisionSetUserRayCastCallback

Postby Julio Jerez » Fri May 23, 2014 2:02 pm

Than may be true, I do no think I test that in core 300, and it may have changed
I will check it out tomorrow.
Julio Jerez
Moderator
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