Emergent behaviour

The Boids algorithm: a flock from three local rules

Each boid sees only the boids within a fixed radius and steers by separation, alignment and cohesion, \(\vec v \mathrel{+}= w_{\text{sep}}\,\text{sep} + w_{\text{ali}}\,\text{ali} + w_{\text{coh}}\,\text{coh}\), with its speed kept within bounds. Every flock is simulated in the page from a fixed seed.

Helios · more films →