Jump to content
  • Advertisement
Sign in to follow this  
FreeDebreuil

2d collision detection and response

This topic is 4833 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

I've been trying to make a c# program that handles 2d Collision detection and response. I'm using polygons vs polygon but i can't find a good algorthm. Does anyone know any good tutorials or something like that for this type of thing? I've found some c++ tutorials, but none in c#... Thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
Can't help you with the c# part, but for 2d (convex) polygons, the separating axis theorem gives you everything you need (static, swept, penetration, time of intersection, collision points and normals). This topic has been discussed ad infinitum in this forum, but I realize with search down the info may be hard to find. A google for 'separating axis theorem' should turn up all you need, though.

Also, I know I've posted links to some standard references in threads that are still on this page, so you might look around a bit.

[Edit: Look in this thread.]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!