Jump to content
  • Advertisement

Archived

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

AyaKoshigaya

Line & Triangle Intersection

This topic is 5552 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
Bounding boxes and bounding spheres work very well for approximate collisions.

---
K-1 Productions: Come visit us here.

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!