How the ASCII physics simulations work
Each piece steps a small model forward in time and draws the result as characters, so the motion comes from the physics rather than a hand-drawn path. The ideas behind them are the ones taught in a first physics course:
- Chaos: in the Double Pendulum, two linked arms make the motion so sensitive to its starting point that the trail never repeats.
- Momentum: Newtons Cradle passes momentum down a line of chrome balls, first one ball at a time and then two.
- Gravity: Binary Star Orbit follows Kepler ellipses and speeds up at closest approach, while Three Body Orbit is integrated live over glowing gravity contours.
- Constraints: Rope Bridge Crossing uses Verlet integration, which moves each point from its last two positions and then pulls neighbors back to their rope length.
- Soft bodies: Jelly Bounce keeps an internal pressure, so it squashes when it lands and recovers its shape.
