Boids

This is a toy: a small game without goal, winning or losing conditions. It is made to try a feature or make a small simulation.

Here we are talking about "Boids". This word is the contraction of "Bird" and "-oid" which is often used at the end of words for curves (source: Wikipedia). So it is a simulation to recreate the way birds and fishes move in flocks.


How to "play"

You can here play with sliders to see the effects of each parameters on the behaviour of all individuals:

  • FOV: Field of View. From -1 to 1. It is "how much an individual will see around itself", -1 meaning it can see all around it, 1 just in front of itself (0 meaning it can see 180°). It define how many neighbours it takes into account
  • Separation: The force of each individual to get away from neighbours that are too close
  • Alignement: The force to follow the movement of neighbours
  • Cohesion: The attractiveness of each individuals to get to the center of all neighbours
  • Detection: The radius of the circle of detection of each individual. When another individual is in range, it will check if it's in the Field of View to count as a neighbour


Ressources

You can find the code here.

I used the following ressources to make this:

Published 10 days ago
StatusReleased
PlatformsHTML5
AuthorShagar220
GenreSimulation

Leave a comment

Log in with itch.io to leave a comment.