To animate a bouncing ball I created a text object called 'Values' which stores the current velocity on the x and y axis. Then I put a script on the 4th frame of my animation controller which;
-Read the old values
-Applied gravitational constant
-Checked for contact with the walls/floor to bounce (check if current position is out of bounds)
-Checked for contact with a quad which relaunches the ball (check if current position of ball is within a certain distance from quad center)
-Added the velocity values to the x/y position of the ball
-Stored the new velocity
-Jumped to frame one
-Repeats
#XPression