|
How does the unity rotate tool rotate around the local y axis? It seems that if I try to adjust localEulerAngles.y programmatically, we do not get the same effect. When rotating with the local rotate tool, x, y and z values are changed. How can we rotate a transform around its local y axis?
(comments are locked)
|
|
Try this:
(comments are locked)
|

http://docs.unity3d.com/Documentation/ScriptReference/Transform-rotation.html
http://docs.unity3d.com/Documentation/ScriptReference/Transform.Rotate.html
Say you wanted a Transform to Look (or point) towards a vector, while being constrained by the local y axis. How can that be achieved?