-
Trying to create an expression to drive rotation speed
I want to animate a sliding switch that moves up and down that drives the rotation of a wheel. When the sliding switch is at the top of its range, the wheel moves slowly, and when the switch is at the bottom of its range, the wheel moves quickly, but always forward. I can’t simply address the rate of rotation except through “valueAtTime(time * x)”, and inevitably the wheel moves backward as the sliding switch moves up. I want the y position of the switch to have a linear relationship to the speed of the wheel’s rotation, but the rotation must always be positive.
Anyone have any ideas?