A classic simple pendulum simulation demonstrating harmonic motion. Watch how gravity pulls the bob back toward equilibrium while momentum carries it past. Adjust the length to change the period, add damping to simulate air resistance, or crank up gravity to see faster oscillations.
// Adjust sliders to modify parameters in real-time