I am drawing a rectangle using a emptytexture (1x1) and I use the following:
spriteBatch.Draw(EmptyTexture, new Rectangle((int)MyPosition.X + MyTexture.Width / 2, (int)MyPosition.Y + MyTexture.Height / 2, 100, 2000), null, Color.Red, MyDirection + MathHelper.ToRadians(180), new Vector2(0, 0), SpriteEffects.None, 0.0f);
But now I am trying to make another rectangle next to that one which looks like this:
But when you rotate the ship it rotates like this:
I've done this by the following:
spriteBatch.Draw(EmptyTexture, new Rectangle((int)(MyPosition.X + MyTexture.Width / 2) + 100, (int)MyPosition.Y + MyTexture.Height / 2, 100, 2000), null, Color.DarkRed, MyDirection + MathHelper.ToRadians(180), new Vector2(0, 0), SpriteEffects.None, 0.0f);
But what I am trying to do is to make the point of rotation of the 2nd one at the middle of the ship like the other one but it's drawn the same.