Read nearby trails
Each agent samples the field around it using a configurable sensor distance and angle.
Physarum
Adjust sensing, movement and trail behaviour, then watch organic structures emerge without central control.
Agents · sensing · trails · collective growth
Physarum is an agent-based generative sandbox inspired by slime mould. Thousands of simple agents sense trails, choose a direction, move and leave a new signal. Their repeated local decisions produce complex organic networks without a central controller.
Each agent samples the field around it using a configurable sensor distance and angle.
The local signal guides the agent left, right or forward according to the behaviour rule.
A movement distance controls how far the agent travels on each simulation step.
The agent adds signal to the field, changing what nearby agents will sense next.
What looks like life is built from logic. This simulation is not programmed to draw — it grows.
The system is slime-mould-inspired rather than a claim of biological realism. Its value is in seeing how sensing, movement and feedback create distinct forms of collective behaviour.
Use a strong, persistent trail and tightly spaced agents to fill the field with connected cellular paths.
Change sensor and movement distances to let thin paths split, reconnect and compete for space.
Adjust turning behaviour and watch local alignment develop into rotating or pulsing structures.
Begin with a deliberate field or paint into the running system, then observe how symmetry survives or breaks.
Push sensing and trail settings toward chaotic regimes where paths continuously appear, dissolve and reform.
The captures pair a real simulation output with the two compact rules behind every agent: move through the field, then sense where to turn next.



Start with a field, tune the agent loop and keep the combinations that produce interesting growth.
Load a saved system or begin with a new agent distribution.
Adjust sensor distance and the angles agents use to read trails.
Change turn angle, movement distance and trail strength.
Intervene by touch while the simulation grows around the new signal.
Store interesting agents, fields and rules for later exploration.
These projects explore the same central idea at different scales: complex behaviour can emerge from many simple local rules.
I build tools for exploring how complex behaviour emerges from simple rules.
See all projects