Collision Help!
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
http://www.thedizzle.com
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.
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.
"Absorb what is useful, reject what is useless, and add what is specifically your own." - Lee Jun Fan
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement