Spinning 360 degrees, using Tween.Rotation is a bit unwieldy. #137
-
Now, I might be wrong. But I think this is the easiest way to spin something 360 degrees, endlessly on loop.
Ideally, a single Tween.Rotation could achieve it, but to my knowledge, it cannot. Am I wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You are correct on the part that it's not possible to animate rotation beyond 180 degrees when using Quaternion (
The only caveat of using Tween.EulerAngles() is that you should always specify the startValue to prevent inconsistent results. Please read more on this here: https://docs.unity3d.com/6000.0/Documentation/ScriptReference/Transform-eulerAngles.html |
Beta Was this translation helpful? Give feedback.
You are correct on the part that it's not possible to animate rotation beyond 180 degrees when using Quaternion (
transform.rotation
). But it is possible to create 360 rotation with the help oftransfrom.eulerAngles
property, like this:The only caveat of using Tween.EulerAngles() is that you should always specify the startValue to prevent inconsistent results. Please read more on this here: https://docs.unity3d.com/6000.0/Documentation/ScriptReference/Transform-eulerAngles.html