Demigiant Forum

Unity Assets => DOTween & DOTween Pro => Topic started by: DJVDJV on August 19, 2015, 05:57:30 PM

Title: Swing tween
Post by: DJVDJV on August 19, 2015, 05:57:30 PM

I want to do tween that:

Rotates object clockwise +10 decree then swings back un clockwise -20 decree then swing back to clockwise +10 decree.
Like make object swing... just one swing not infinite.

a) How to do this?
b) How to do this if I want swing infinite?
Title: Re: Swing tween
Post by: Daniele on August 19, 2015, 07:43:48 PM

a) you could try out the Elastic or Bounce eases to see if you can achieve what you aim for
b) you would have to create two tweens (swing forward + swing backwards) and add them to an infinitely looping Sequence