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

uxizde/-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

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

About

HackRPI 2014 fall

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages