 | Ball Bouncing again
on Apr 15, 2011 at 3:32:14 pm |
Hi all.
I need to animate a bouncing ball through a maze, with obstacles and so on.
Everything went ok so far, tweaking Dan Ebberts's expression about bouncing and squashing that I found here, but when it came to have the ball bounce between a floor and a ceiling, i don't know what to do.
Any ideas?
Thanks.
 | Re: Ball Bouncing again on Apr 15, 2011 at 4:42:13 pm |
In the expressions, is there a way to limit the pixel range for top and bottom movement?
 | Re: Ball Bouncing again on Apr 15, 2011 at 4:50:27 pm |
There's a "floor" value, which is the y at which the ball bounces up again, but no upper limit. It should be enough finding a way to switch from an absolute cosine like function to some kind of sawtooth, and then back again.
 | Re: Ball Bouncing again on Apr 15, 2011 at 6:35:48 pm |
Here's a tutorial that goes over the Sine wave math for AE. It's quite rambling and he makes a lot of mistakes that get corrected later but, nonetheless, it's quite informative. You may get some ideas.
http://twurl.nl/7h6s72 | Re: Ball Bouncing again on Apr 18, 2011 at 9:37:25 am |
Thank you very much, it won't be easy but i think i can get some ideas from that.