Game Development Community

Collision

by Devildrew · in Torque Game Engine · 07/27/2004 (5:25 am) · 2 replies

Does any one know the formula for a ray intersecting a cylinder?

I need to find it using the castRay function in my own renderobject class.

Thanks.

#1
07/29/2004 (2:19 pm)
Have you tried checking online? I'm usually able to find that stuff pretty quickly off of google.
#2
08/14/2004 (9:10 am)
May I recommend "3D Game Engine Design" by David H. Eberly from Morgan Kaufmann press? There are explainations for every type of collision detection you could want....

Rich

PS - he doesn't give the "formula" specifically for a cylinder, but he has one for a capsule and explains how to adapt it for a cylinder.

Rich (again)