Boids Flocking
Reynolds' three rules — separation, alignment, cohesion — produce emergent flocking behaviour
Separation
1.5
Alignment
1.0
Cohesion
1.0
Vision radius
60
Speed
2.0
N boids
120
Reset
Scatter!
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.