Momentum Animation

Click, drag, release!

 

 

Collisions can be on a scale of 0 (Inelastic) to 1 (Elastic).

inelastic dough vs elastic bouncy ball

In the Gravity Animation, the collisions are either inelastic (two objects smashing into each other) or elastic (the objects swing around each other and head off again).

Formula

The formulas used in this animation are:

new va = elast × mb(vb − va) + mava + mbvbma + mb

new vb = elast × ma(va − vb) + mava + mbvbma + mb

Where: