Advertisement

Line & Triangle Intersection

Started by August 08, 2003 09:41 AM
1 comment, last by AyaKoshigaya 21 years, 6 months ago
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~
I aim for my endless Dreams and I know they will come true!
Bounding boxes and bounding spheres work very well for approximate collisions.

---
K-1 Productions: Come visit us here.
---K-1 Productions: Come visit us here.
Advertisement
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.

This topic is closed to new replies.

Advertisement