Advertisement Jump to content
Sign in to follow this  
FreeDebreuil

2d collision detection and response

This topic is 4901 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!