Dotween: How to rotate 360 degrees

Created on 31 Dec 2017  路  4Comments  路  Source: Demigiant/dotween

I'd like to rotate a Transform by 360 degrees using DOTween to make it spin, but I can't figure out the proper way to do this according to the documentation. What would be the best way to do this? Thanks!

Most helpful comment

Ahoy!
You would need to set RotateMode.FastBeyond360 as DORotate parameter (so the tween doesn't use the shortest route) and then chain a SetRelative() to tell it to rotate "by" instead of "to" :)

All 4 comments

Ahoy!
You would need to set RotateMode.FastBeyond360 as DORotate parameter (so the tween doesn't use the shortest route) and then chain a SetRelative() to tell it to rotate "by" instead of "to" :)

how to make it uniform rotation?

i meant the speed

If you want a uniform speed you should set a Linear ease via:
myTween.SetEase(Ease.Linear);

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eduardbosch picture eduardbosch  路  3Comments

dooprod picture dooprod  路  11Comments

ShadowTM picture ShadowTM  路  4Comments

Dentrax picture Dentrax  路  10Comments

lucasmontec picture lucasmontec  路  6Comments