Hooke’s Law and Simple Harmonic Motion
A spring’s force is proportional to its stretch x and pulls back toward its natural length.
Textbook model
F = −kx T = 2π√(m ÷ k)
without friction it keeps oscillating with the same amplitude forever.
Simplified game model
Forward Euler (the amplitude grows over time)
forward Euler makes the amplitude grow until it blows up. Semi-implicit Euler (update velocity first) stays stable — the simulator compares all three.
The textbook model is also an idealization with simplified conditions; real phenomena have more factors.
Simulator
A mass on a spring oscillates with period T = 2π√(m ÷ k), whatever the amplitude.
Stretch a spring too far and the proportional relationship no longer holds.
How games use it
Spring-follow cameras, wobbly UI, cloth and hair.
More laws in this category
- Coefficient of Restitution
- Conservation of Momentum (Collisions)
- The Simple Pendulum
- Conservation of Mechanical Energy
Physics Laws Quiz Collisions, Oscillation & Energy
Sources
Checked: 2026-11-29