Instead of two smooth population curves (as in the classic Lotka-Volterra equations), this simulation tracks every plant, prey animal and predator as a separate agent with its own position and its own energy reserve. Population-level booms, busts, and extinctions all emerge from thousands of individual foraging, reproduction, and starvation events — nobody tells the total population what curve to follow.
Because every agent's fate depends on its own local encounters rather than a population average, running this exact simulation twice from identical starting numbers can produce a stable long-running ecosystem in one run and a predator die-off in the other — a kind of unpredictability called demographic stochasticity that smooth differential-equation models cannot show at all.
A 3D individual-based ecosystem: every plant, prey animal and predator is a separate agent tracking its own energy reserve, foraging within a local radius, reproducing above an energy threshold, and starving at zero — population cycles emerge from thousands of local decisions instead of a pair of smooth equations.
Discrete energy budgets and short-range foraging produce spatial refuges, demographic noise, and real extinction events — dynamics the classic Lotka-Volterra differential equations can't represent.
Tune plant growth rate, foraging radius, metabolism rate and simulation speed, then inject extra predators or prey to see how the three-level food chain responds.
Run this exact simulation twice from identical starting numbers and you can get a stable ecosystem in one run and a predator die-off in the other — pure demographic stochasticity from individual foraging luck.