Bounce simulation with restitution (bounciness) of 1 using the Cannon driver.

Click when the red reticle points at the ball to apply a force to it (if you are having trouble with timing, position yourself beneath it using WASD).

view code