Original Post
I got an angle axis from a quoternion for an object in my game and need to find the direction vector for where the object is facing.. how can I find this?
Quote:
When my game starts the original orientation would be the same as the current orientation wouldn't it?
rotated_vector = quaternion * original_vector * inverse(quaternion)Quote:
everytime a new orientation quaternion is set I multiply it by the previous orientation vector
Quote:
Original post by Nanook
I got a function to do quaternion * Vector3 , but how do I do Vector3 * quaternion? I've tried to look around for a formula, but cant find one?
Quote:It does return a quaternion, but you can convert this quaternion back to vector form by dropping the 'w' component.
but that would return a quaternion though? And I need the direction vector..
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more