Test 1D and 2D collisions between two spheres using an exact analytical time-of-impact solver: vary masses, restitution e ∈ [0, 1], perfectly inelastic sticking, and off-center glancing impact offset.
Uses exact quadratic swept-sphere Time-of-Impact resolution (zero tunneling) and applies restitution e strictly along the normal line of centers while keeping tangential components untouched.
Whenever two isolated spheres collide without external friction or walls, Newton's third law guarantees equal and opposite impulses J and −J during contact, so total vector momentum (px, py) before impact identically equals total momentum after impact.
Coefficient of restitution e sets how bouncy the collision is along the center-to-center line: e = 1 gives a perfectly elastic collision conserving both momentum and kinetic energy (as in Equal-Mass Billiard Swap, where sphere 1 stops dead and transfers all momentum to sphere 2), while e < 1 dissipates energy into heat and sound.
In 2D glancing collisions (Δy > 0), restitution acts solely along the impact normal vector n̂, leaving perpendicular tangential velocity unchanged—producing the classic 90° scattering angle when equal masses collide elastically!
| Regime | Restitution e | Momentum Conserved? | Kinetic Energy Conserved? | Post-Collision Behavior |
|---|---|---|---|---|
| Perfectly Elastic | e = 1.0 | Yes (vector) | Yes (100%) | Equal masses swap velocities 1D or split 90° 2D |
| Partially Inelastic | 0 < e < 1 | Yes (vector) | No (partial loss) | Separate with reduced relative normal speed |
| Sticky Perfectly Inelastic | Merge mode | Yes (vector) | Maximum loss | Lock together at shared center-of-mass velocity |
| Heavy Hits Stationary Light | e = 1, m₁ ≫ m₂ | Yes (vector) | Yes | Light target shoots forward at nearly 2 v₁ |
A 40-second animation: Newton's 3rd Law equal impulses, restitution e, 50% inelastic loss, and 90° glancing splits.
Select Equal-Mass Billiard Swap: sphere 1 stops completely after striking stationary sphere 2, handing off 100% of both p and KE.
Choose Inelastic Sticky Merge for equal masses initially at rest + moving: total momentum stays 12 kg·m/s while kinetic energy drops cleanly by 50%.
Run 2D Glancing Billiard Shot (e = 1, m₁ = m₂) and confirm the velocity vectors diverge perpendicular to each other.
Only along the normal line of centers—for an off-center 2D glance, e = 0 stops relative normal motion while tangential slip continues, which is why this lab provides a dedicated Sticky Merger toggle.
Bouncing off stationary container walls exerts an external impulse from the walls on the spheres, reversing px or py.
By both conserving momentum and kinetic energy, elastic head-on rebound gives v₂' = 2 m₁ v₁ / (m₁ + m₂), approaching 2 v₁ when m₁ ≫ m₂.