Skip to content

Artificial life simulation originally developed by Craig Reynolds. The aim of the simulation is to replicate the behavior of flocks of birds.

Notifications You must be signed in to change notification settings

aureliensimon/flocking-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flocking simulation : Boids

In 1986, Craig Reynolds made a computer model of coordinated animal motion such as bird flocks and fish schools. It called the generic simulated flocking creatures boids.

Rules

The basic flocking model consists of three simple steering behaviors which describe how an individual boid maneuvers based on the positions and velocities its nearby flockmates.

Separation Content Cell steer to avoid crowding local flockmates
Alignment Content Cell steer towards the average heading of local flockmates
Cohesion Content Cell steer to move toward the average position of local flockmates

Boid vision

Dark red : Repulsion zone

Light red : attraction zone

Simulation settings

Parameter Explanation Recommended Value
fov how far the boid can see (radius) 80
repulsion_fov how far the boid sees obsacles 40
max_speed how fast a boid can go 6
max_force maximum force a boid can support 0.2
separation_force importance of the separation rule 1
cohesion_force importance of the cohesion rule 1
align_force importance of the alignment rule 1
repulsion_force how strong a boid will try to avoid an obstacle 5

Sources

Boids, from Craig Reynolds

Wikipedia Boid article

Boids Pseudocode

About

Artificial life simulation originally developed by Craig Reynolds. The aim of the simulation is to replicate the behavior of flocks of birds.

Topics

Resources

Stars

Watchers

Forks