• Advertisement
Sign in to follow this  

Rotation Matrix reset only one axis problem.

This topic is 2898 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

First of all, Hello to everyone! :P I have a problem, I have a rotation matrix that rotates in all 3 axes, and, in some point of the game, I receive a single axis absolute angle. Now I have a Rotation Matrix and a single angle, say, for example, 200 degrees on X axis. At this point, I want to reset my Rotation Matrix Y Axis to 200 degrees without modifying the degrees of X and Z axis but, I don't know how, because my Rotation Matrix already has an Y axis and, if I concatenate them, it will be more (or less) than 200 degrees. I've tried to get the Euler angles from the Matrix, then set Euler->Y to my desired degrees (Euler->Y = 200;) and then create a new Rotation Matrix with this Vector, but, I don't like it because in some positions, the angles received from conversion MatrixToEuler are not fiable. What can I do?

Share this post


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

  • Advertisement