Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 16874

Rotation vector from a direction vector

$
0
0

Given the up vector of (0, 1, 0) and a direction vector (such as 0, 0, 1 being forward of 0, 0, -1 facing left) how could I construct a rotation vector (Euler angles) from the direction vector?

 

This sounds like a math homework question but it is not. I tried to break it down into sections that I could dissect to solve this. I could not though


Viewing all articles
Browse latest Browse all 16874

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>