Convert direction vector to euler angles

19.5k Views Asked by At

How do I convert a direction vector to euler angles?

I need to change the position of a character's head in a Java program that I'm writing. The pose of the head uses euler angles. I know the direction vector that it needs to face to.