Skip to content

tansonlee/flocking-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boid Flocking Simulation

A flocking simulation made with the Boid algorithm

Link to hosted project: Boid Flocking

Made with JavaScript and visualized with the p5.js library

The boid algorithm consists of 3 rules which apply to the local flock (within a perception distance and a viewing angle):

Rule Description
Separation: Each boid steers to avoid colliding with other boids in the local flock
Alignment: Each boid steers to align its velocity with that of the local flock
Cohesion: Each boid steers toward to centre of the local flock



Sources:
https://en.wikipedia.org/wiki/Boids
https://www.youtube.com/watch?v=mhjuuHl6qHM&vl=en

About

A flocking simulation made with the Boid algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors