Presets
Playback
Scenario and parameters
Camera
Layers
Quality
Model check
The science
Collision of two discs. With masses m1, m2 and a contact normal n, the impulse is J = (1 + e) mu v_n, where mu = m1 m2/(m1+m2) is the reduced mass, v_n the approach speed along n and e the coefficient of restitution. Velocities change by -J n/m1 and +J n/m2, so the total momentum p = m1 v1 + m2 v2 is conserved exactly for every e, while the kinetic energy drops by dK = (1 - e^2) mu v_n^2 / 2.
1D closed form. v1' = ((m1 - e m2) v1 + (1+e) m2 v2)/(m1+m2) and v2' = ((m2 - e m1) v2 + (1+e) m1 v1)/(m1+m2). For e = 1 and equal masses the velocities swap; for e = 0 the bodies move on together with the centre-of-mass velocity.
Centre-of-mass frame. Between wall hits the centre of mass moves at constant V = p/M. In the frame moving with V the two bodies approach with opposite momenta and leave with speeds scaled by e. An elastic collision just rotates the relative velocity, which is why the green arrows in that view are always antiparallel for two bodies.
Oblique hits. Only the component along the line of centres changes; the tangential component of each disc is untouched because the discs are frictionless (no spin). With impact parameter b the normal makes angle asin(b/R) with the velocity, R = r1 + r2. For equal masses, e = 1 and a resting target the two discs leave at 90 degrees to each other.
Numerical method. The engine solves for the exact contact instant inside each sub-step (a quadratic in time), rolls both discs back to it, applies the impulse and rolls forward, so results match the formulas to machine precision. The in-page checks run the engine on a scratch copy and compare it with the closed forms.
Simplifications: frictionless smooth discs (no spin or throw), e independent of speed, instantaneous collisions. In the billiards rack simultaneous contacts are resolved pair by pair in three sweeps, whereas the real outcome of a break is sensitive to this. Cushions are straight reflecting walls with their own e, and an optional constant rolling-drag deceleration mu g can be switched on.