Advertisement

line and poly collision

Started by March 29, 2003 09:47 AM
2 comments, last by dpmodex 21 years, 10 months ago
I need a function for my engine which could tell me if a line hits a poly in 3D space. I had some bad ideas like subdividing the poly into small particles, but my guess is that I should use analythic geometry calculations and I''m not that good in math... Any other idea,tip,doc,code,link...? Thanks!
GameTutorials has a real nice and simple line and poly collision detection tutorial
http://www.gametutorials.com/Tutorials/opengl/OpenGL_Pg3.htm
- John Moses
Advertisement
http://www.gametutorials.com/Tutorials/opengl/OpenGL_Pg3.htm

this might help you
Orthogonal project the polygon to 2D in the direction of the line. now you can simply do a point - poly test in 2D.

My Site

This topic is closed to new replies.

Advertisement