Boids Flocking Simulation

Reynolds 1987 — Emergence from three local rules

Flocking Rules

Separation: avoid crowding neighbors
Alignment: steer toward avg heading
Cohesion: steer toward avg position
Red dot: predator (boids flee)
No global coordination — pure local rules.