I'm trying to rotate my shot Texture by 180 degress, but when I do the following:
spriteBatch.Draw(TexTiro, Position, null, Color.White, (float)(180), new Vector2(), Vector2.One, SpriteEffects.None, 0f);
the texture appears like this:
What am I doing wrong?
It is because the rotation is in radians.
You can use MathHelper.ToRadians()
to easily convert degrees to radians: see here
spriteBatch.Draw(TexTiro, Position, null, Color.White, MathHelper.ToRadians(180), new Vector2(), Vector2.One, SpriteEffects.None, 0f);