Simulations for class rooms  Yoshio Okamoto 12th May 2020 (Stay home programing Series No.6 from my FaceBook)

(Boids as a bird flocks simulator)

Boids is a simulator of birds flocks or fish schools developed by Craig Reynolds in 1986. https://www.red3d.com/cwr/boids/
Boids is based on only three simple rules,

1) Separation: steer to avoid crowding local flockmates



2) Alignment: steer towards the average heading of local flockmates



3) Cohesion: steer to move toward the average position of local flockmates



(images and definition by C.Reynolds. images are from wikipedea)

Simple rules reproduce very complicated behavior of natural phenomena.
So, this is one of the famous examples of the complex system.

----"Flocking is a particularly evocative example of emergence: where complex global behavior can arise from the interaction of simple local rules." by C.Reynolds in the above pages.

I made a mimic of this simulation in early 2000; however, this was a cell automaton version of this program.
Today I complete a non-cell version of this program as a stay homework from full scratch.
You can enjoy my Boids from here;
http://seagull.stars.ne.jp/Simulations/Boids/web/boid_nr.html
However, this is a strict version of the above rules and including no stochastic effect (parameter PR is zero). So, this is a little bit boring.

My program
Paremeters:

So, added some stochastic effects version is here;
http://seagull.stars.ne.jp/Simulations/Boids/web/boid_cp.html

In this program, the parameters used are

MV: Alignment strength
DV: Cohesion strength
FK:
Separation strength
PR: Stochastic additional effect control
 


You can enjoy more natural flocks behavior (parameter PR is non zero).


Copyright(c) by Y.Okamoto 2002-2020, All rights reserved.