Velocity vector to rotation [Solved]

   2791   1   1
User Avatar
Member
166 posts
Joined: 10月 2008
Offline
Is there any clever expression which can give me the Y rotation angle of the vector between velocity X and velocity Z. Or is the only way to write a custom expression for this?

Sort of like this:
http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/complex/transforms/rotation2.gif [euclideanspace.com]
Edited by - 2009年3月18日 05:47:58
User Avatar
Member
166 posts
Joined: 10月 2008
Offline
Found it! The atan2 expression does exactly what I wanted.
  • Quick Links