Jump to content
  • Advertisement
Sign in to follow this  
adriansnetlis

Convert World Space Angles to Euler Angles

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

So let's say I have a rotation as 3 float values - one for each axis. And I have 3 direction vectors of the object(2 should be enaugh, though). My rotation system only allows to use local Euler angles for rotation, however, I need to rotate in world space. How do I convert world space rotation angles to Euler angles using directional vectors?

Share this post


Link to post
Share on other sites
Advertisement

We're going to need some information on how your rotation system works exactly.

Are you using Matrixes? Quaterinions? Or something else?

Share this post


Link to post
Share on other sites

I"m somewhat confused as if you have 3 rotational value around each axis....what are these axes. I"m assuming this would be your frame of reference which would be world space. The 3 directional vectors for the object would be your local coordinate frame of reference. Are the 3 rotational value around this axes ?. If not, at a higher level, if you have a set of basis function that describes your object frame of reference in the world. You would have to first align that frame of reference with the world coordinate system ( this should just be the inverse rotation that produced the object frame of reference ). One the object frame of reference is aligned with the world, then any rotation applied to then would be done in world space.

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!