Jump to content
  • Advertisement
Sign in to follow this  
writtensouls

Xna Vector2.transform and Xna createrotation problems

This topic is 4210 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Tring to rotate a 2-d sprite outside the draw function is starting to annoy me. Well I been tring to do it as follows: 1.Create a matrix and assign it to matrix.createroationX 2.I use vector2.transform to apply the matrix to the vector point position of where im going to draw the sprite. 3. The outcome is the spite is moved left or right or up or down or whatever but it does rotate at all. Can anyone please shade some light on how to perform a rotation on a sprite by using a matrix and apply it to a 2-d sprite? Rotate means displaying the sprite at a different angle right? Anthony out, thanks, much appreciated

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!