Const
The snow MPM material (Stomakhin et al. 2013). Defaults: the paper's reference snow plus a hardening cap (SNOW_PRESETS.packed). Its sound speed assumes fully hardened snow, so the time step stays stable.
snow
.packed
const mpm = new MPMSolver(renderer, { materials: { snow: SNOW_PRESETS.powder }, cellSize: 0.1, height })mpm.emit({ center: [0, 0.2, 0], size: [3, 0.2, 3], material: 'snow' }) Copy
const mpm = new MPMSolver(renderer, { materials: { snow: SNOW_PRESETS.powder }, cellSize: 0.1, height })mpm.emit({ center: [0, 0.2, 0], size: [3, 0.2, 3], material: 'snow' })
The
snowMPM material (Stomakhin et al. 2013). Defaults: the paper's reference snow plus a hardening cap (SNOW_PRESETS.packed). Its sound speed assumes fully hardened snow, so the time step stays stable.