Skip to content
This repository was archived by the owner on Jan 7, 2020. It is now read-only.

Latest commit

 

History

History
51 lines (29 loc) · 1.57 KB

README.md

File metadata and controls

51 lines (29 loc) · 1.57 KB

RPI Hackathon 2014

Flocking simulation

Theory

Boids stay together to save themselves from predators, creating swarming effect that can be used to visualize other complex systems (e.g. stock markets).

Three principles (by Craig Reynolds)

  • Cohesion (flock centering)
  • Flocking (velocity matching)
  • Separation (collision avoidance)

Cohesion

The boids which are far from the center of the flock are more likely to be caught by predators.

Model: the acceleration of each boid points to the center of mass of the nearby boids.

Flocking

The boids travel in the same direction and speed as nearby boids do.

Model: the acceleration of each boid points to the sum of velocities of nearby boids.

Separation

The boids try to avoid running into each other.

Model: the acceleration of each boid points away from the sum of distances of nearby boids.

Vision

Each entity, whether it is a prey or predator, has vision, within which it perceives food or danger. Therefore our model

Model: interaction considered only within a certain radius.

References

Flocking

The Reactive Swarm