is there a quick way to change a vector3 with a rotation without having a GO? Ive got a Vector3(X,Y,Z) and want modify this Vector with a Rotation(X,Y,Z) as if it were a GO. Or do I need to have a GO, place this at Vector(X,Y,Z), do the rotation and then read the Vector3 values?
asked Jun 23 '10 at 10:22 AM
You can do this:
It's important that the Quaternion is on the left side of the *.
answered Jun 23 '10 at 10:54 AM
The preferred way is to use Quaternions. Conceptually (mathematically) they are a bit intimidating, but if you treat them as a black box that stores rotations, they are pretty easy.
See the first example in this forum thread to see how easy it is: http://forum.unity3d.com/viewtopic.php?p=303861
answered Jun 23 '10 at 10:57 AM