How about balls which aren’t perfectly elastic?
A real ball will never be perfectly elastic. That means when it collides with something, the wall or another ball, it will lose some kinetic energy. This energy is lost for example as sound and heat. We can simulate this by reducing the velocity.
- How does the simulation change when you change the loss of energy?
- What numbers are actually realistic? Have a look here for numbers for some common materials.
Add bounce:
Fancy a hint? You can find the solution here.