Sign in to follow this  
writtensouls

Xna Vector2.transform and Xna createrotation problems

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this