2D Flocking

Flocking-2d

The Aim of this project is to build on my flocking work, I want to create a simple RTS in Unity3D

Within this I have distilled the formula down to just the basics needed for movement and scaled up the number of units.

In the current version of this project all boids are 1 large flock but again I have implemented a Spatial Hash which allows for much larger numbers of boids.

The calculation for the flock includes Alignment, Separation, Cohesion & TargetLocation

The target point is a random position inside the arena which randomises when the centre of the flock comes within a certain range.