- Fish are drawn to the center of other fish around them
- Fish tend to move in the general direction as other fish around them
- Fish keep safe distances apart and move at similar velocity to each other to avoid colliding with other fish around them
Anyways, I really got absorbed into the project as the gratification was tremendous when my first fish began to swim back and forth in the 3-dimensional tank. Then I began adding external influences one by one (centroid, average heading, collision avoidance, and velocity matching), and with each step the fish took on increasingly more life-like appearance due to their emergent behavior.
If you have the very latest Shockwave player (version 10) installed please do check it out. If you have trouble playing the movie, try downloading the latest Shockwave player from Macromedia's site. I used the newest version of Director MX (2004) which just came out in February, so the code isn't compatible with any but the latest version of Shockwave.
Recent Comments