Archived

This topic is now archived and is closed to further replies.

AyaKoshigaya

Line & Triangle Intersection

Recommended Posts

Hi, does anyone know how I can find out if a Line interects a Triangle??? I''ve found the code on Gametutorials.com, and it worked very well, but it''s very very slow... so, does anyone know how I can test if a Triangle and Line intersection can be, before I use the slow method to find it out exactly??? I''ve thougt on something like using BoundingBoxes or something.. any idea? Au''revoir, Aya~

Share this post


Link to post
Share on other sites
I''m sur you can do it using maths : distance of a point to a line can be computed; apply it to your 3 triangle edges and make a comparison with the 3 distances obtained.

Share this post


Link to post
Share on other sites