Collision Help!

Started by
1 comment, last by rgirard413 22 years, 5 months ago
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
Advertisement
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.
"Absorb what is useful, reject what is useless, and add what is specifically your own." - Lee Jun Fan
How would i do it with 3D?
http://www.thedizzle.com

This topic is closed to new replies.

Advertisement