-
Leaf falling expression to a stop
I came across this expression for emulating the falling of leaves. However, it just keeps “falling” forever. I was wondering if there is anyway of making it stop after some point, i.e., when ‘y’ is bigger than a specific value, say 1080 (the border of the screen.
position
sp=2;
amp=150;
gravity = 50;
x = Math.sin(time*sp)*amp;
y= time*time*gravity;
value + [x,y];rotation:
sp=2;
amp=5;
x = Math.sin(time*sp)*amp;
value – x;