Jump to content
  • Advertisement
Sign in to follow this  

Xna Vector2.transform and Xna createrotation problems

This topic is 4131 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
Sign in to follow this  

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!