[Interest] Animate rotation at given speed, how to set direction?

Elvis Stansvik elvstone at gmail.com
Fri Jun 3 18:07:54 CEST 2016


2016-05-15 15:08 GMT+02:00 Elvis Stansvik <elvstone at gmail.com>:
> Hi folks,
>
> With RotationAnimation I can control the direction of the rotation
> (cw/ccw). But I'd like to animate rotation at a certain speed, using
> SmoothedAnimation:
>
>         Behavior on rotation {
>             SmoothedAnimation {
>                 velocity: 45
>             }
>         }
>
> But with SmoothedAnimation I have no control over the direction of rotation :/
>
> Any ideas?

I'm still looking for a solution to this, no one knows of one?

I guess what I have to do is use RotationAnimation after all, and
control the duration based on the angular distance to my target angle.
But that way I can't get the easing curve I would get with a
SmoothedAnimation, right?

Elvis



More information about the Interest mailing list