------PRESS SPACE to spawn circles! (max. 50)------ Watch them collide and bounce in the correct direction and speed :) This program takes into account mass. An elastic collision is an encounter between two bodies in which the total kinetic energy of the two bodies after the encounter is equal to their total kinetic energy before the encounter. Elastic collisions occur only if there is no net conversion of kinetic energy into other forms (such as heat or noise).
Corrected mass to be based on area rather than radius (as would be the accurate mass of a 2-dimensional object).