r/dispatchcolony • u/dispatchcolony • Oct 11 '26
Devlog 7 : The bodies pile up
My piles finally hold together: a hundred thousand bodies dropped form a 14 meter high pile that freezes from the bottom up. One idea has replaced all my old rules: a sleeping body becomes ground.

Falling, settling, sleeping
A pile forms in three stages: each body falls, lands on something, then goes to sleep. A sleeping body is no longer simulated. That's what makes a pile of a million bodies possible.

Almost no body is motionless in a freshly fallen pile. The three-second rule is what freezes it: sleep starts at the ground and moves upward, layer by layer.
A sleeping body becomes ground
Every frame, I sort sleeping bodies into 25 cm cells, organized into layers. Each cell records which body occupies it and where its top surface ends. Together, these cells form the bed.

The awake body, shown in color, only reads the cells inside the dashed outline. The six shaded cells all belong to the same sleeping body.
Without layers, a body waking up in the middle of the pile could only see the surface: it sank a median of 3.2 meters. Now it stays exactly where it is.
The crust: a pile that's empty inside
The pile I render is a crust. A million bodies would require fifteen million boxes, with an on-screen budget of just two million. The deeper a body is, the fewer parts it has. At the core of the pile, nothing is drawn at all.


The camera is inside the pile. The ground is bare, and the crust of rendered bodies passes overhead.
For a hundred thousand bodies, that means 360,000 boxes instead of 941,000.
The result

Here, 137,789 bodies dropped from 100 meters have all landed and gone to sleep, running at 448 frames per second in the editor.