2 unstable releases
Uses new Rust 2024
| 0.2.0 | Oct 27, 2025 |
|---|---|
| 0.1.0 | Sep 20, 2025 |
#597 in Graphics APIs
Used in slosh_testbed3d
10MB
244K
SLoC
Slosh: cross-platform MPM GPU physics simulation
Running the examples
- Download the Slang compiler libraries for your platform: https://github.com/shader-slang/slang/releases/tag/v2025.16
- Unzip the downloaded directory, and use its path as value to the
SLANG_DIRenvironment variable:SLANG_DIR=/path/to/slang. Note that the variable must point to the root of the slang installation (i.e. the directory that containsbinandlib). - For the 2D examples, run
cargo run --release --example testbed2 - For the 3D examples, run
cargo run --release --example testbed3
Notable MPM use-cases
This gives some insights of some interesting usages of MPM (the Material Point Method) for deformable physics simulation. Note that it doesn’t imply that slosh currently implements these models:
- Animation: one very well-known usage of MPM is snow simulation by Pixar.
- Engineering: blast movement simulation (patented).
Dependencies
~28–38MB
~713K SLoC