/FlockingSimulation

An exploration in Java of the Craig Reynold's "Boids" software to create a behavioural simulation of flocks in a 2D environment.

Primary LanguageJava

A personal research and implementation test based on Craig Reynold's paper "Flocks, Herds, and Schools: A Distributed Behavioral Model" that describes a very simple approach used to simulate a group of autonomous agents (called "Boids" by Reynold) acting like in bird or fish flocks.

The program is written in Java. If you are familiar with vi (do not be frightened please) you'll be fine because commands are sent like vi in the bottom of the window and are:

(n)ce to create (n) entities
(n)co to create (n) obstacles
r to reset
p to pause/resume
w to make entities wander
s to make entities seek a terget
f to make entities only follow Reynold's rules (and collision avoidance)

After clicking on the simulation panel:

t to show/hide cohesion rule's area

Useful links:
https://www.red3d.com/cwr/papers/1987/boids.html
https://www.red3d.com/cwr/boids/