Flocking System Breakdown

Flocking Systems | Boids | Geometric Flight | Flocking Behaviour | Collision Avoidance | Velocity Matching | Flock Centring | Examples | Steering Behaviours | Seek and Flee | Pursuit and Evasion | Arrival | Wander | Path Following | Wall Following and Containment

Flocking Behaviour Examples

Target Flocking

This animation shows a simple flocking system, where the boids have no knowledge of one another. they are only interested in getting to their target at the centre of the screen.

No actual behavioural animation is incorporated in this example. Only the simple physics and seek behaviour.

Collision Avoidance

This animation shows a simple flocking system which incorporates seek and collision avoidance between other boids.

Each boid is affected by every other boid which means that boids stuck in the middle of other boids have nowhere they can move to and this makes the flock look static and uninteresting.

Velocity Matching

This animation shows a simple flocking system that incorporates seek and velocity matching behaviour. With no collision avoidance, the boids all end up clumped at the target.

As you can see, the boids all attempt to move at the same speed as their neighbours, reducing the number of collisions and maintaining the flock structure.

Flock Centring

The animation below shows a simple flocking system that uses only seek and flock centring. As there is no collision avoidance, the boids end up clumped around the target in the centre of the screen.

The boids near the outside of the flock, have a larger centring urge, and so move faster towards their neighbours in order to remain part of the flock.

All together

This animation shows a simple flocking system with seek, collision avoidance, velocity matching and flock centring.

Also, rather than being affected by every other member, each boid only looks at its nearest two neighbours in order to calculate behavioural forces.

This is another example with all three behaviours, only this example has a moving target which the boids follow using seek behaviour.

 

<< previous | next >>