top of page

FLOCKING AND AVOIDANCE

 

Within programming, my real passion is for emergent behaviour and A-Life.

I have made several project based around the idea of A-Life, ranging from the reasonably advanced to the quite simplistic. The project presented here is an example of the latter.

 

This project demonstrates Boids (agents in a flock) travelling in the manor of a school of fish, and avoiding a predator. The 'models' are very simplistic, I will be adding animation and better models in future updates, along with improved flock solidity.

A Fish. Well, what passes for a fish in this project. These tiny agents move in swarms (or flocks), and will evade predators. They can also break off and form smaller flocks, but will aim to rejoin larger flocks if there are any nearby. I will be adding to their needs in due time - food, reproduction, etc.

This plane-looking blue thing is the predator. Kind of based on the swordfish, in its base behaviour - it will follow a flock, picking out an isolated individual where it can, and will charge at this enemy, hoping to further separate it and then pick it off. At the moment, it simply eats the fish until it runs out, then circles around forever. Eventually, I will be adding energy expenditure, breeding and genetic behaviour to these agents.

bottom of page