Labs · Physics
Rigid Circles & the Galton Board
The cloth demo used distance constraints between connected points. Collisions work the same way, with "stay at least r₁ + r₂ apart" as a constraint between every pair of touching circles. A spatial grid finds those pairs quickly, and repeating the solver several times per frame lets tall piles settle stably.
The Galton board scene closes a loop with Chapter 0. Each ball bounces left or right at random on every peg, and the bins fill into a binomial / normal distribution, a physical histogram.
In "Pile", click to drop balls and drag one to stir the heap. Raise the solver iterations if piles look squishy.
Controls
- Scene
- Max balls
- Ball radius
- Gravity
- Solver iterations
- Ball colour A
- Ball colour B
- Peg / wall colour
Evolved from Verlet Physics: Cloth & Ropes.
Evolved into Granular Hourglass.