Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Link between Create Rotations matrices

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 LemonBiscuit   Members   

147
Like
0Likes
Like

Posted 16 April 2014 - 05:24 AM

Hello,

 

A friend of mine have been coding some rotations on my XNA project, but the order of the matrices rotation are not good. Some are of form :

Matrix.CreateRotationZ(1.21f) * Matrix.CreateRotationY(-0.13f)

and other:

Matrix.CreateRotationY(1.01f) * Matrix.CreateRotationX(-0.5f) * Matrix.CreateRotationZ(0.80f)

How can I find the values X, Y, Z so the rotations are in the correct order: (X,Y,Z) ?

Matrix.CreateRotationX(X) * Matrix.CreateRotationY(Y) * Matrix.CreateRotationZ(Z)

Thank you!






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.