|
Hi, 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?
(comments are locked)
|
|
You can do this:
It's important that the Quaternion is on the left side of the *. exactly what i was looking for :)
Jun 24 '10 at 09:02 AM
Ent
(comments are locked)
|
|
Yes. 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
(comments are locked)
|
