Flocking
2D Flocking in the Unity3D game engine using Craig Reynolds' boids
Install / Use
/learn @RafaelKuebler/FlockingREADME
Unity3D Flocking using Craig Reynolds' Boids
2D implementation of Craig Reynolds' boids in the Unity3D game engine.
<img alt="150 boids" src="https://user-images.githubusercontent.com/9216979/45744864-d3d7f400-bbff-11e8-9e3e-0bee1d2f5865.gif" width="500">The boid's emergent flocking behaviour is caused by 3 rules:
- Alignment: steer towards the direction nearby boids are heading
- Cohesion: steer to move toward the average position of local flockmates
- Separation: steer to avoid colliding or getting too close to another boid
Built With
- Unity3D - Game Engine
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
- Inspiration: Processing Flocking implementation
