Collisions, Oscillation & Energy

Restitution, conservation of momentum, springs (Hooke’s law), pendulums and conservation of mechanical energy.

Textbook modelSimplified game model
Coefficient of Restitution
v′ = −e v  hₙ = h₀ e²ⁿ
v′ = −e v; stop when speed is below a threshold
Conservation of Momentum (Collisions)
m₁v₁ + m₂v₂ = m₁v₁′ + m₂v₂′
Assume equal masses and swap velocities
Hooke’s Law and Simple Harmonic Motion
F = −kx  T = 2π√(m ÷ k)
Forward Euler (the amplitude grows over time)
The Simple Pendulum
θ″ = −(g ÷ L) sin θ  small swings: T ≈ 2π√(L ÷ g)
Use sin θ ≈ θ: θ = θ₀ cos(√(g/L)·t)
Conservation of Mechanical Energy
½mv² + mgh = constant
Add gravity to velocity with Euler steps (energy drifts on slopes)

Physics Laws Quiz All laws

Sources

Checked: 2026-11-29