File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Slosh: cross-platform MPM GPU physics simulation
2-
31<p align =" center " >
4- <img src =" assets/slosh-logo.png " alt =" crates.io " width =" 400px " >
2+ <img src =" assets/slosh-logo.png " alt =" crates.io " width =" 300px " >
53</p >
64<p align =" center " >
75 <a href="https://discord.gg/vt9DJSW">
86 <img src="https://img.shields.io/discord/507548572338880513.svg?logo=discord&colorB=7289DA">
97 </a>
108</p >
119
12- # Running the examples
10+ # Slosh: cross-platform MPM GPU physics simulation
11+ ## Running the examples
1312
14131 . Download the Slang compiler libraries for your platform: https://github.com/shader-slang/slang/releases/tag/v2025.16
15142 . Unzip the downloaded directory, and use its path as value to the ` SLANG_DIR ` environment variable: ` SLANG_DIR=/path/to/slang ` .
1615 Note that the variable must point to the root of the slang installation (i.e. the directory that contains ` bin ` and ` lib ` ).
17163 . For the 2D examples, run ` cargo run --release --example testbed2 `
18174 . For the 3D examples, run ` cargo run --release --example testbed3 `
1918
20- # Notable usages of MPM
19+ ## Notable MPM use-cases
2120
2221This gives some insights of some interesting usages of MPM (the Material Point Method) for deformable physics
2322simulation. Note that it doesn’t imply that ** slosh** currently implements these models:
You can’t perform that action at this time.
0 commit comments