Boids: Simulated Flocking Behavior

This Demonstration implements the boid algorithm to model flocking birds. For detailed information about a manipulable setting, hover over the name of a setting to display a tooltip.
Each boid considers all other boids within a set distance to be part of its flock, adjusting its own velocity to both match that of flock members in its cone of vision and gather toward the center of the flock. Furthermore, boids will attempt to avoid collision with other boids.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


[1] Sir Spinach. Boids. [Video]. (Aug 2, 2012)
[2] C. Parker. "Boids Pseudocode." (Aug 2, 2012)
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.