Beantwortet
How can I apply the position expressions in after effects?
I am new in this expressions and scripting. I want a circular shape layer to move in a projectile path following actual physics formula.

I am new in this expressions and scripting. I want a circular shape layer to move in a projectile path following actual physics formula.

Just using the basic projectile formula, you could do something like this:
g = -55000;
angle = -45;
v0 = 10000;
a = degreesToRadians(angle);
vx = v0*Math.cos(a)*time;
vy = v0*Math.sin(a)*time - g*time*time/2;
value + [vx,vy]Adjust gravity (g), initial velocity (v0), and launch angle (angle) to get the result you want.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.