title: How to rotate a vector2 around another vector2?
body: <p>I'm currently in the process of making a game. he game consists of the player operating a robot from a top down perspective. The movement, collisions and firing is all implemented. </p>
  
  <p>However, the robot has 2 'arms' from which it fires its weapons, to fire from these arms i have basically set up 2 makeshift locations for the robot to fire from, one for each arm, consisting of an offset in the X direction of +/- 15. When the player is looking down the arms shoot fine and the bullets appear to be coming out from the robots arms, however, when i turn the player to look to the left or right on the Y axis, it appears as though the robot is shooting the bullets from within its body. I have an image to help illustrate the issue</p>
  
  <p><a href="http://imageshack.us/photo/my-images/694/problemrs.png/" rel="nofollow">http://imageshack.us/photo/my-images/694/problemrs.png/</a></p>
  
  <p>As you can see, the left and right projectile spawn points are in the correct position until the robots body is rotated. What i want to be able to do, is rotate those 2 Vector2 positions around alongside the robots body. The red blocks show where the projectiles are spawning from, and the white blocks represent where i would like the spawn position to be. I've tried a few rotation methods but none have had the effect im after.</p>
  
  <p>Any clues?</p>