Difference between revisions of "Flight of a flock of birds"

From BP Wiki
Jump to: navigation, search
Line 12: Line 12:
 
* When the "Scare" button is hit - fly away from the center of the flock.
 
* When the "Scare" button is hit - fly away from the center of the flock.
  
An example of the result can be seen in the following file: [[File:BirdFlightMovie1.mp4]]
+
A video example of the result can be seen here ** add link **

Revision as of 15:01, 15 April 2014

Simulating Flight of a Flock of Birds

In this example we simulate the flight of a flock of birds, with each bird having a simple set of rules implemented as b-threads. The example highlights

  • Multi-agent activity
  • Emergent group behaviors - emanating from individual agent behavior
  • Implementation of animation with BPJ - and handling of associated design issues.

Requirements - from each bird

  • Always try to move towards the center of the flock
  • Always avoid colliding with other birds
  • When getting close to a wall - change direction - in the same "reflection" angle
  • When the "Scare" button is hit - fly away from the center of the flock.

A video example of the result can be seen here ** add link **