• Advertisement
Sign in to follow this  

Lookat vector to Euler

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

i am missing something and it's buggin me. i have a lookat vector defined as such vec3 vLookAt = vec3( 1.0f, 0.0f, 0.0f ); // Look +x direction now how do i get the Euler angles for each wx, wy, wz. thanks much

Share this post


Link to post
Share on other sites
Advertisement
One way is to construct the matrix, then extract the euler angles from it. The other way, given a suitable order of rotations, is to convert the vector to spherical coordinates and take theta and phi as two of the angles (the third angle being zero).

Share this post


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

  • Advertisement