Boids

In 1986, Craig Reynolds showed that flocking needs no leader and no plan. Each bird follows three local rules: avoid crowding neighbors (separation), match their heading (alignment), fly toward their center (cohesion). No bird knows the shape of the flock. The flock emerges anyway. Two hundred triangles, three rules, zero choreography.

Parameters

Click — add/remove attractor
Right-click — add/remove repulsor
Attractors: gold · Repulsors: red