Archived

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

rgirard413

Collision Help!

Recommended Posts

My collision detection code is working now, but improperly. It only detects the edge of the triangles, how do i get it to detect over the whole triangle? Thanks Edited by - rgirard413 on November 16, 2001 12:35:11 AM

Share this post


Link to post
Share on other sites
If you are just checking a single point you can perform a simple ''point in polygon'' algorithm. Check out the comp.graphics.algorithms newsgroup FAQ - it has a really fast routine for 2d polygons.

If you are checking a polygon against the triangle, you can check the lines of each polygon to see if any of them intersect, or see if one polygon is within the other.

Share this post


Link to post
Share on other sites