Bounce simulation with restitution (bounciness) of 1.

view code