I’m trying to rotate a Vector3 around the y axis by 1 degree. I’ve created the rotation to use for it:
var leftTurn= Quaternion.AngleAxis(-1, Vector3.up);
But I can’t seem to find any function that rotates a vector by a quaternion. Is there such a function? It seems like such a basic function, I find it hard to believe it would be in neither Quaternion or Vector3, given how function-complete Unity generally is. Which leads me to suggest I’ve missed it.
http://unity3d.com/Documentation/ScriptReference/Quaternion.html
http://unity3d.com/Documentation/ScriptReference/Vector3.html