Jump to content
  • Advertisement

Archived

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

CGameProgrammer

Calculating if a point is within a triangle's bounds

This topic is 5749 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

A simple question. I could probably come up with something but I doubt it would be optimal. This is for collision detection. I have the triangle''s coordinates, normal, and plane, the "point" is the point on the plane where the object''s movement vector intersects it. So if the point is within the triangle then the object is colliding with it. I have the point; I know how to do plane collision. ~CGameProgrammer( );

Share this post


Link to post
Share on other sites
Advertisement
Gosh, there have been 3 or 4 threads about this recently, and more than one of those probably shows up in first page or two of threads in the forum. So you can find lots of discussion on this problem by browsing existing threads.

I''m going to give you my standard link for point-in-polygon tests:

http://www.acm.org/pubs/tog/editors/erich/ptinpoly/



Graham Rhodes
Senior Scientist
Applied Research Associates, Inc.

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!