Calculating if a point is within a triangle's bounds
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( );
~CGameProgrammer( );
Developer Image Exchange -- New Features: Upload screenshots of your games (size is unlimited) and upload the game itself (up to 10MB). Free. No registration needed.
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.
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.
Graham Rhodes Moderator, Math & Physics forum @ gamedev.net
Oh yeah, lol, on the second page there are about four of them right next to each other. I''ll start reading them now.
~CGameProgrammer( );
~CGameProgrammer( );
~CGameProgrammer( );
Developer Image Exchange -- New Features: Upload screenshots of your games (size is unlimited) and upload the game itself (up to 10MB). Free. No registration needed.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement