No tags yet.
Heya all,
I am trying to write and expression that would make an object work like a pendulum based on time. So for instance I want a ball to start at translateY -1, then at frame 30 it would be at translateY 1. then at frame 60 it would move to translateY -1 and so on as the time line plays.
I know how to get the ball moving, I just can't seem to get it going in reverse after frame 30.
if time < 1
ball.translateY = time * 2;
Is it a pendulum you want to do?
a pendulum would rotate no? not translate.
it seems to me a pendulum would work as a sine wave. I would write an expression with sine on it to get that going. I guess you could input that into a translation. It's all the same :D
Anyway. Not sure what the exact formula it would be, but I would use a sine wave to go from positive to negative
Hope it helps
Javier
You must log in to post.