Two minimal sketches harkening back to the olden days. Introducing: flock in a box and flock on a plane. Astute observers will notice that the 1D version, flock on a stick, is missing. The 0D version, flock on a dot, was used to end this sentence. There’s no real interaction. Click the mouse to shake things up.
Nothing revolutionary here, yet another implementation of Reynolds’ boids. There’s a lot to discover in flocking behavior. Daniel Shiffman’s exposé in the teaching section of his site proved especially illuminating.
If you’ve got a couple of minutes free to code, have a go at it. Flocking soothes the soul…