Skip to content

rikusoikkeli/flocking-algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flocking-algorithm

This is my take on the legendary flocking algorithm developed by Craig Reynolds in 1986. The idea being that if we program agents to follow three simple rules, from it emerges beautiful, collective, flock-like behaviour.

The three rules being:

  1. Separation: steer to avoid crowding local flockmates
  2. Alignment: steer towards the average heading of local flockmates
  3. Cohesion: steer to move towards the average position of local flockmates

To run this you'll need Unity version 2020.3.7f1.

Oh and I added the feature for the agents to avoid obstacles, too.

About

Implements a flocking algorithm in 2D space using the Unity game engine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages