-
bounce ball from floor expression help
bouncesPerSecond = 1.5 bounceStrength = 200 decayRate = .5 floor = thisComp.layer("floor").transform.position[1] bounceOffset = Math.abs(Math.cos(bouncesPerSecond * time * 2 * Math.PI)) y = bounceStrength * bounceOffset/Math.exp(decayRate * time) floor = floor - (height/2) [position[0],floor] - [0,y]Above is an expression that bounces a ball from a floor. This is from the book After Effects Expressions by Marcus Geduld
My problem here is with the variable called height. Is there such a variable in AE java script?
TONY T