0

Well,hi again,i have a question,and this time is about scripting.
To be direct,i'd like to know how i can get width and height of a texture that is rotated on XNA.

Nakano15
  • 35
  • 9

1 Answers1

1
newWidth = textureHeight * Math.Sin(angle) + textureWidth * Math.Cos(angle);
newHeight = textureHeight * Math.Cos(angle) + textureWidth * Math.Sin(angle);
Daniel Johnson
  • 691
  • 4
  • 14