A flock has no leader. Each bird just watches the few neighbours nearest it and obeys three tiny rules โ don't crowd, aim the same way, and stay with the group. From those purely local steering forces, the swirling, lifelike unity of a murmuration emerges, with no one in charge. Craig Reynolds called these simulated creatures boids in 1986. Scroll through and steer the flock yourself.
Every boid feels three steering forces from the neighbours inside its vision radius: Separation pushes away from anyone too close, Alignment nudges its heading toward the average heading of the group, and Cohesion steers it toward the local centre. Tune each weight, flip rules on and off, and move your mouse over the canvas to play predator โ the flock will veer away.
Run a single rule in isolation to see exactly what it does, then switch to All three and watch them blend into a murmuration. Separation alone spreads boids into an even, gas-like spacing. Alignment alone makes everyone drift in lock-step but lets them spread apart. Cohesion alone clumps them into a tight, jostling ball. Only together do you get a flock that stays grouped and spaced and flowing.
None of the three rules mentions "the flock". Each boid only ever reacts to the handful of neighbours within its own vision โ there is no leader, no plan, and no global view. Yet a coherent, fluid super-organism appears anyway. That is emergence: complex global order arising from simple local interactions.
Craig Reynolds introduced boids in his 1987 SIGGRAPH paper "Flocks, Herds, and Schools" (work from 1986). The same idea now animates CGI crowds and herds in film, drives swarm-robotics coordination, and models traffic and crowd flow โ all from three rules and a neighbourhood.