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

From BP Wiki
Jump to: navigation, search
Line 13: Line 13:
  
 
A video example of the result can be seen here ** add link **
 
A video example of the result can be seen here ** add link **
 +
 +
= Download =
 +
# Click [[Media:TicTacToe.zip | here]] to download the flock of birds example.
 +
# Installation Instructions:
 +
##Import the downloaded project to your workspace:
 +
###From the 'File' menu choose 'Import'-->'General'-->'Existing Projects into Workspace'.
 +
###Click the 'Next' button.
 +
###Click the 'Select archive file' option and then click the 'Browse...' button to select the downloaded zip file.
 +
###Click 'Finish'.
 +
##The flock of birds example project is now part of your workspace.
 +
##Refer to the readme.txt file for execution instructions.

Revision as of 07:56, 17 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 **

Download

  1. Click here to download the flock of birds example.
  2. Installation Instructions:
    1. Import the downloaded project to your workspace:
      1. From the 'File' menu choose 'Import'-->'General'-->'Existing Projects into Workspace'.
      2. Click the 'Next' button.
      3. Click the 'Select archive file' option and then click the 'Browse...' button to select the downloaded zip file.
      4. Click 'Finish'.
    2. The flock of birds example project is now part of your workspace.
    3. Refer to the readme.txt file for execution instructions.