Collision Detection

Started by
3 comments, last by AxoDosS 21 years, 11 months ago
Hi! My question is: How do I detect if a point is in a triangle? I know how I can detect if a point is in a plane by knowing the plane normal but what happens is that it creates an infinite plane that is not restricted to the triangle.
Advertisement
Check http://www.gamedev.net/community/forums/topic.asp?topic_id=90919
there was a discussion about detecting a sphere-triangle collision. Reading that should help you.

Have fun.
-----The scheduled downtime is omitted cause of technical problems.
Thank you very much!!

Now my collision detection function works perfectly =D
Just my 2 cents:

you can check if point is in a region of any shape that doesn''t have overlaping lines by puting one point outside and drawing a line to the point you''re checking. If it crosses (x mod 2 = 1) lines, then it''s inside, but if (x mod 2 = 0) - outside
---Quite soon...ICQ: 163187735
Thanks I will check that.

This topic is closed to new replies.

Advertisement