Momentum Animation

Click, drag, release!

images/momentum.js

 

 

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 + mbvb ma + mb

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

Where: