Damped Spring
Drag the mass horizontally and release it. Adjust spring constant, damping, and mass while the simulation runs.
Potential Energy
U(x) = ½kx²
The orange point follows the quadratic potential. Damping removes total mechanical energy over time.