Emergence · Flocking

No boid can see the flock. Each follows three local rules using only its nearby neighbors — yet a coherent, lifelike flock emerges with no leader and no global plan. That gap between simple parts and complex whole is the heart of biological complexity.

Separation — steer away from crowding
Alignment — match neighbors' heading
Cohesion — drift toward the local center

Move your mouse: you're a predator. Watch the flock split and re-form.

local rules in · global order out