A 3D simulator of living cells
A browser simulator where cells take in glucose, turn it into ATP and protein inside their own volume, grow, divide and starve. Version 0, built to grow.
StartedSep 25, 2026
Last updateSep 25, 2026
Question
Can a cell’s basic economy be shown as a spatial process rather than a set of equations? Fuel has to physically reach the right place inside the cell before anything happens, and cells compete for a shared supply.
Approach
A small TypeScript app using Three.js (a 3D graphics library for the browser), about 870 lines of source. It runs entirely in the browser. Units are arbitrary; it is a model of behaviour, not of real rates.
| Part | What it does |
|---|---|
| Cell | membrane, nucleus, mitochondria and up to 900 moving molecules of three kinds: glucose, ATP and protein |
| Metabolism | glucose that drifts into a mitochondrion becomes 3 ATP; ATP that reaches the nucleus becomes protein; protein mass sets the cell’s radius |
| Medium | a 40×40×40 grid of glucose outside the cells that spreads, decays and is fed by drawn capillaries |
| Uptake | cells pull glucose through their membrane with a rate that saturates (like real transporters) and leave a depleted halo around themselves |
| World | soft push-apart between neighbouring cells, containment, optional division past a size threshold |
| Interface | click to spawn a cell, click to inspect, double-click to follow one, drag to draw a capillary, feed button for a glucose pulse |
Results
Version 0 works as an interactive model. Built in one session on 25 September 2026.
| Behaviour | Status |
|---|---|
| Spatial metabolism (glucose to ATP to protein, by location) | working |
| Growth from protein mass | working |
| Division at a size limit | working, off by default |
| Starvation and death without ATP | working |
| Glucose reaching only a couple of cell widths from a capillary | working |
Rates are tuned by hand to look right, not taken from measurements.
Findings
- Making metabolism depend on where molecules are produces cell behaviour (growth, starvation) without writing it in as a rule.
- Feeding glucose only through capillaries gives a natural limit: cells far from a vessel starve, as in poorly supplied tissue.
- Cells eating a halo out of the shared medium means neighbours compete, which a well-mixed model would hide.
- Division is off by default, so cells grow to full size and hold. It can be switched on from the control dock.
Next
Planned:
- Signalling molecules that cross membranes, for quorum sensing (cells sensing how crowded they are) and chemotaxis (moving toward a chemical).
- Adhesion and membrane deformation where cells touch.
- A genome that drives expression, so cell types can differ and evolve.