Home▸Physics & Mechanics▸Worm Garden Foraging Lab: Correlated Random Walk & Search Theory (2D)

Worm Garden Foraging Lab: Correlated Random Walk & Search Theory (2D)

2D top-down foraging lab: worms perform an active-Brownian correlated random walk hunting leaf-litter food, with live mean-squared-displacement and depletion curves plotted against the closed-form search-theory predictions.

Physics & Mechanics2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-worm-garden-simulation ↗ Open standalone

This 2D companion turns the 3D garden diorama's wandering-and-eating worms into a testable search-theory model: each worm is simulated as an active Brownian particle with a real rotational-diffusion coefficient, and its statistical predictions — the closed-form mean-squared-displacement curve and the exponential food-depletion curve from random-search encounter theory — are plotted live against what the population of worms is actually doing, so you can watch the math hold up (or visibly break down once the worms run into the garden's walls or run out of leaves).

⚙ Under the hood

2D top-down foraging lab with worms as active Brownian particles (constant speed, rotational diffusion), live-plotting measured mean-squared-displacement and leaf-depletion curves against their closed-form theoretical predictions.

random walkactive brownian particlerotational diffusionforaging theorysearch theorymean squared displacement

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)