-
Linking Velocity to Slider
Hi, I was using this tutorial to make a squash and stretch effect, I wanted to try and link the velocity of the moving layer to the scale width.
I think I have everything right, and the numbers shown look around where they should be, but the expression has stopped any scaling effect that I had applied. Now it wont register the scale effect at all.
Any help would be great.
velocity = thisLayer.transform.position.velocity;
angleInRadians = Math.atan2(velocity[1], velocity[0]);
angleInDegrees = 180 * angleInRadians / Math.PI +100;This is the effect I have on a Slider controlling my scale width.