← back to projects

Falling Sand Simulation

Cellular automata falling sand simulation with thermodynamics, heat transfer, and phase transitions.

2025
c++sfml
view on github ->

Falling sand simulation built with SFML 3, featuring a thermodynamic system with realistic heat transfer and phase transitions.

Features

  • Heat transfer - Realistic conduction using harmonic mean of material conductivity
  • Phase transitions - Lava cools to stone, water evaporates to steam
  • Multiple materials - Sand, water, gas, lava, stone with density-based displacement
  • Performance - 16,000+ particles at 60 FPS using cache-friendly 1D array grid