Boids: Simulated Flocking Behavior

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

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.


Contributed by: Steven H. Wang (August 2012)
Mentor: Erin Craig
(Mathematica Summer Camp 2012)
Open content licensed under CC BY-NC-SA




[1] Sir Spinach. Boids. [Video]. (Aug 2, 2012)

[2] C. Parker. "Boids Pseudocode." (Aug 2, 2012)

Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.