-
Confusing floating leaf animation
Hi there.
I’m attempting to randomly animate a bunch of sakura petals falling through the sky. I have a general position keyframed across all layers. I also have an expression set up on position as:
seedRandom(6,true);
yVelocity = random(0,200);
oscFreq = random(.1,.5);
oscDepth = random(35,70);
drift = 25;value + [oscDepth*Math.sin(oscFreq*Math.PI*2*time) + drift *time,
yVelocity*time,0]What I would really like to do is set up an expression for the x rotation which is scaled to the yVelocity value so that it rotates quicker when the petal is travelling at speed. The layers are toggled to 3D, but are designed as 2D objects. Any ideas on how I can achieve this? Many thanks.