Jump to content
  • Advertisement

Archived

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

rgirard413

Collision Help!

This topic is 6150 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!