Jump to content
  • Advertisement
Sign in to follow this  
johnnyBravo

How to get rotation, world matrices from position and orientatin vectors?

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

Hi, I need to get a rotation matrix from an orientation vector(x,y,z). And also the world matrix from a position and ...orientation vector? Aswell I would use a 3x3 matrix wouldn't I? This is for some angular velocity calculations btw, if that is of any interest. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
As long as you have only done rotation and translation, the rotation part of a 4x4 matrix is the upper left 3x3 matrix, and the position is the 4th column (or row, depending on your notation).

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!