Raycasting to triangle mesh

RJNelson68
Posts: 73
Joined: Tue Oct 06, 2009 3:19 pm

Raycasting to triangle mesh

Post by RJNelson68 »

I am integrating Bullet with the Torque Game Engine Advanced 1.82 and have managed to get it all to work pretty well. However, what I need to know is if there is some way in Bullet to get a triangle's coordinates by casting a ray to a Bullet triangle mesh.

For instance, you fire a weapon at an object using a triangle mesh and through a ray cast it can place a bullet hole decal on the surface and make an explosion effect at that location.
RJNelson68
Posts: 73
Joined: Tue Oct 06, 2009 3:19 pm

Re: Raycasting to triangle mesh

Post by RJNelson68 »

Nevermind, I am stupid, it was there all along.