XNA 2D Rotated Rectangle Collision Response
Posted
by
Kyle Uithoven
on Game Development
See other posts from Game Development
or by Kyle Uithoven
Published on 2012-10-08T19:00:35Z
Indexed on
2012/10/08
21:51 UTC
Read the original article
Hit count: 201
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?
© Game Development or respective owner