Jump to content
  • Advertisement


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


triangle intersection test?

This topic is 5953 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, i need a little bit help on writing a triangle intersection function. i want to test if a vector intersects a triangle. how could i do that? it is not important where the intersection point is, if any, i only want to check whether it intersects or not thanks!

Share this post

Link to post
Share on other sites
To get started, check out:

If you still need help, I''ll see what I can do.

Share this post

Link to post
Share on other sites
Hi Gammastrahler,

You want to check if a triangle and a segment collide?
I had to solve a similar problem and did it in the following way:

First find the intersection Ip between the line described by your vector and the plane described by your triangle.
Check wether Ip lies inside of the segment. If not, no collision.

If yes, check wether Ip is inside of the triangle. If not, no collision.

Let me know if you need more details.



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!