Thanks to visit codestin.com
Credit goes to github.com

Skip to content

AidenBurgess/Flocking-p5js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flocking


This p5js project demonstrates flocking, which is a behaviour that many animals express.
It consists of alignment, cohesion, and separation. I have also added an external force which repels the boids away from the mouse.
Click to add new boids to the screen.
The base code was made by following a tutorial by The Coding Train.

How to Run

Download all files as a ZIP.
Extract files into the same folder.
Open the index.html file.

Future Goals

Add 3D
Different coloured boids
Boids with different behaviours
Let external force be attractive as well as repulsive

Acknowledgements

Tutorial by The Coding Train on Youtube: https://www.youtube.com/watch?v=mhjuuHl6qHM

About

A p5js based flocking simulation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published