Boids
Flocking Behavior
This project is based on an artificial life simulation originally developed by Craig Reynolds, called Boids. In this example, each triangle represents an individual boids. Boids are autonomous objects that have a limited awareness of their surroundings, and can only "see" other boids within their field of view. Boids are aware of their direction as well as the direction of other boids in it's field of view.
There are 3 guiding principles that detect the direction of each boid: separation, alignment, cohesion. The first principal, separation, will steer boids away from nearby neighbors. The boid will then steer towards the direction nearby boids are traveling, also known as alignment. Finally, cohesion will steer boids towards the center of the flock. Feel free to click on the animation to reset the flock.