/java-flocking-simulation

implementation of the boid flocking simulation

Primary LanguageJava

boid flocking simulation

simulating the flight of birds with three simple rules

  • alignment: steer towards the average heading of local flockmates
  • cohesion: steer to move toward the average position of local flockmates
  • separation: steer to avoid crowding local flockmates

to add

slider to change forces on the go (in new jframes)

sources

https://www.red3d.com/cwr/boids/
https://www.youtube.com/watch?v=mhjuuHl6qHM