XNA 2D Rotated Rectangle Collision Response
- by Kyle Uithoven
I am using Rotated Rectangles which collide using the Separating Axis Theorem and they work perfectly fine for collision detection using Intersects and Contains.
However, I am starting to use faster objects in my game now and there is the issue of the two object overlapping during collision due to their higher velocities. I would like to do a collision response where I find out how much they are overlapping in the X and Y and put position them outside of each other.
I would like to use something like this: http://go.colorize.net/xna/2d_collision_response_xna/index.html.
But I am having some issues trying to adapt this to handle the rotation of the bounds.
Is this possible? Are there any resources out there that I can look at?