#Is there a way for me to rotate a Vector

1 messages · Page 1 of 1 (latest)

warm robin
sick fjord
#

Yup! this is pretty much what i want, sucks that i have to figure out what a quaternion is tho. Thank you!

warm robin
#

From my (fairly limited) experience, you can just treat a Quaternion as a rotation operation. e.g.:

Vector3 vector;
Quaternion rotation0;
Quaternion rotation1;
Vector3 rotatedVector = rotation0 * rotation1 * vector;
#

The other big thing I was told: unless you truly understand how they operate, never provide values to a Quaternion manually; you should always construct a Quaternion from methods that will do it for you.