luke-codewalker / flocking

Flocking simulation

Home Page:https://luke-codewalker.github.io/flocking/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flocking

Website demonstrating a flocking simulation. Inspired by Daniel Shiffmann.

Flocking is a combination of three different desires that the vehicles on the screen have:

  • separation: how much does a vehicle want to separate from other vehicles
  • cohesion: how much does a vehicle want to stay together with other vehicles
  • alignment: how much does a vehicle want to move in the average direction the vehicles around it

All these variables can be controlled with the sliders on the page. Play around with them and wait a while for the change to take it's full effect. Also don't forget to check out the color schemes.

Have fun and use this repository for any issues <3

About

Flocking simulation

https://luke-codewalker.github.io/flocking/


Languages

Language:JavaScript 80.5%Language:HTML 11.5%Language:CSS 8.0%