Archived

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

CGameProgrammer

Calculating if a point is within a triangle's bounds

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
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