A Simple Ecosystem with Lions, Chickens and Grass in Unity.
A devlog about this project is available here:
This project simulates a simple prey-predator system:
-
Agents lose energy by moving. If their energy is too low, they look for food:
-
Lions eat Chickens
- Chickens eat Grass
- If they have enough energy, they reproduce. The children inherit the average speed of their parents
- Speed of an agent makes them move faster but also consume energy faster so natural selection finds a compromise.
In the above simulation, lions initially have the upper hand in terms of speed and therefore have more population. However, through natural selection, only the faster chickens survive and reproduce. This leads to new chickens being able to outrun lions and leave them with no food which leads to their extinction.
This project uses the following non-included packages: