Draw to create the flock of prey and hunters

Boids / Flocking

Boids is an artificial life program simulating the flocking behaviour of birds. The name "boid" corresponds to a shortened version of "bird-oid object", which refers to a bird-like object. Read more...

Boids is an example of emergent behavior where the complexity of Boids arises from the interaction of individual agents (the boids, in this case) adhering to a set of simple rules. The rules applied in the simplest Boids world are as follows:

  • Separation: steer to avoid crowding local flock-mates
  • Alignment: steer towards the average heading of local flock-mates
  • Cohesion: steer to move toward the average position (center of mass) of local flock-mates