Boids Flocking

Reynolds' three rules — separation, alignment, cohesion — produce emergent flocking behaviour

Avg alignment:
Avg flock size:
Rules:
Separation: steer away from nearby boids
Alignment: match velocity of neighbours
Cohesion: steer toward flock centre
Wrap-around boundaries.