WOLFRAM NOTEBOOK

WOLFRAM|DEMONSTRATIONS PROJECT

Boids: Simulated Flocking Behavior

play
reset world
world size
500
starting boids
30
max velocity
8
flocking range
100
flocking power
0.1
center power
0.5
repulsion range
17
repulsion power
0.12
kill offscreen boids
bounce off walls
restore defaults
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.
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.