-
swinging motion… how to i set the start value that isn’t Zero
I posted the expression i was using below… here is where i got the code from
i have a couple of issues with this code.
1. i need to have the start value of the swing adjustable. but i need it to come to a stop at zero.
2. i don’t understand why he didn’t use a Decay function…
swingMaxDistance = 75;
swingSpeed = 5;
easeTimeSpan = 3;
easeSpeed = 1;
easeVal = ease(time*easeSpeed, 0, easeTimeSpan, swingMaxDistance, 0);
Math.sin(time*swingSpeed) * easeVal;