When you need a constant rotate speed. Sorry I miss this, acc =0 and dec = 0 means using max speed.
Sin Angle mode:
initialValue + Math.sin(dt) * magnitude
The calculation of angle is different. (Btw, the target rotation angle may a little implicit in sine behavior)
Ah, I forgot these. Swing behavior provide some conditions
- "On hit start angle",
- "On hit end angle",
- "On hit start or end angle"
Actually, it is similar with "MoveTo" behavior -- speed up(if acc>0), hold on max speed(if still have time), slow down(dec >0).
I made "Swing" first, then "MoveTo".