title: Find point of collision for two sprites
body: <p>I'm working on a 2D game in C# and XNA and I have succeeded at getting the per-pixel collision detection with sprites working. The challenge that has me puzzled right now is how to calculate the location where the two sprites are colliding.</p>
  
  <p>The reason I need this information is that the nature of this game requires that the objects have rotation and react somewhat accurately according to physics. My current testing environment involves two squares. Any suggestions on how to find the contact point would be well received.</p>
  
  <p>Also if anyone has any suggestions on how to calculate the distance to move the sprites on collision so that they don't overlap that would be great too. </p>
  
  <p>The code I'm using for the collision detection comes from here:</p>
  
  <p><a href="http://xbox.create.msdn.com/en-US/education/catalog/tutorial/collision_2d_perpixel_transformed" rel="nofollow">http://xbox.create.msdn.com/en-US/education/catalog/tutorial/collision_2d_perpixel_transformed</a></p>
  
  <p>Thanks all!</p>