Jump to content
  • Advertisement
Sign in to follow this  
Marktheguy

From axisangle(i think...) to rotation

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

In my editor 0.86602539,0,0,-0.5 reads Z rotation -60 degrees I want to convert from axis angle to the rotations. Is there a easy, script friendly what to do this or do I have to go with Mr Baker: http://www.euclideanspace.com/maths/geometry/rotations/conversions/angleToQuaternion/index.htm ? Thanks in advance

Share this post


Link to post
Share on other sites
Advertisement
So you have a quaternion representing a rotation of -60 degrees about the z axis - what do you want to do with it exactly? I'm not sure what you mean by 'convert from axis angle to the rotations'.

Share this post


Link to post
Share on other sites
Quote:
Original post by Marktheguy
So my question is, how do I convert from 0.86602539,0,0,-0.5 to -60 z rotation?
I guess I'm still not quite clear - what format do you want to convert the quaternion to? Axis-angle? Euler angles? A rotation matrix?

Whatever format you want to convert to, it's pretty easy to find info on how to do so online (the site you mentioned is a good one, IIRC). Anyway, if you're still stuck on this, perhaps you could describe in a bit more detail what you're wanting to do.

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!