Sign in to follow this  
Cornstalks

2D Collision Detection for Physics Demo

Recommended Posts

I'm developing a 2D Physics Engine [c++] (simple, lately I've been doing huge and unrealistic projects, so this one I'll finish since it won't be too complex). I've got drawing, input, and everything I need (I've taken physics classes and know how to implement it), but what I don't have is a way to detect collisions. I've searched and seen a lot of posts about the SAT method and the Polycolly demo, and I'm definately going to try them out, as they look promising. But they only deal with convex polygons. Some polygons that I would like to use will be concave(like maybe an L shaped box). Is there a simple way to do this, either with SAT or some other method?

Share this post


Link to post
Share on other sites
Thanks, I was thinking in school today about this, and thought of something like that but wasn't sure if it would work. I'll start to learn the SAT, and then see if I can get it to work. If I have troubles...I'll be back. Thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this