Canvas Animation: Collisions

Ball interactions solved with displacement & velocity vectors. Impacts between different masses resolved using physics: conservation of momentum & kinetic energy. Energy losses allowed on 'impact' mode.  Internet Explorer is not supported, install a modern browser.

0%
100%

1.0
1.0

Controls

Modes:

Impact KE Loss:

This is based on Newton's law of restitution. The values in the slider translate as:

Others:

This is for the curious, in case you want to dig in further on the maths behind the 'Impact mode'.