Collision Detection for arbitrarily sized, positioned and rotated rectangles in XNA

Posted by Stefan on Stack Overflow See other posts from Stack Overflow or by Stefan
Published on 2010-04-11T17:46:39Z Indexed on 2010/04/11 17:53 UTC
Read the original article Hit count: 191

Filed under:
|
|

I'm working with xna in C# and in my game I will have a variety of space ships flying all over the place. They will each have an arbitrary rotation, size and position in space and I need a method to determine when they collide. Ideally the method would take two Rectangles, two doubles and two Vector2s for size, rotation and position respectively and return a boolean that indicates whether they have intersected or not.

© Stack Overflow or respective owner

Related posts about c#

Related posts about XNA