This is a demo of coding procedural animation and flocking algorithms. Move your cursor around the scene to see.
Red fish are attracted to the cursor. Green fish are attracted to the floating jellyfish. The octopus and stalks and repels the red fish.
[swf:http://www.trowelandtrug.com//duckfeet2/school/wp-content/uploads/2013/09/hussainflocking.swf 550 400 ffffff wmode]