technique

Falling Sand

Simulate loose grains on a 2D cell grid: each frame, move a grain straight down into an empty cell, or diagonally down-left/down-right if straight down is blocked.

Also called: falling sand simulation · sandpile model

What it is

How it works

Parameters & tuning

Where it’s been used

Variants & neighbours

Go deeper

Connected to

Further reading: The Coding Train


Revision 1 · 1 source · Something wrong? Tell us.