Unified particle physics
Single GPU particle framework that simulates rigid bodies, cloth, soft bodies, fluids and gases together using PBD-style constraints and two-way coupling.
Also known as FleX
In the family Simulation & animation, particle/constraint solvers
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | None found | |
| Babylon.js 9.38.0 | None found | |
| Godot 4.7 | None found | |
| Unity | None found | |
| Unreal 5.7 | None found | |
| Blender 5.2 | None found | |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
Every object is a set of particles. Rigid bodies and soft bodies use shape-matching clusters, cloth uses distance and bending constraints, fluids use position-based density constraints, and gases use a variant with an expansion term. All constraint types are solved in the same Jacobi-style loop on the GPU, with a shared uniform-grid neighbour search for collisions, so different phases (cloth versus fluid, rigid versus gas) interact through ordinary contact constraints with mass-ratio scaling. Averaging constraint corrections per particle and applying a relaxation factor keeps the Jacobi iteration stable. This design is the basis of the NVIDIA FleX library.
When to choose it
Reach for it when
- want fluids, cloth and rigid bodies interacting in one solver
- two-way coupling between liquid and solids
- separate simulators don't interact properly
- mixed-material gpu simulation in real time
Choose it for scenes mixing liquids, cloth and solids with two-way coupling in one GPU solver. Prefer Extended Position-Based Dynamics for a single-material solver with calibrated stiffness, Position Based Fluids for fluids alone, and Sequential impulses (rigid bodies) for large rigid-body piles needing accurate stacking.
Field marks
- Rigid bodies built of particles stack poorly and show surface bumpiness
- Jacobi iteration with large mass ratios converges slowly
- Fluids and gases have visibly artificial viscosity
- Particles must be sized uniformly for the neighbour grid, limiting detail
Lineage
From the citation graph (Crossref reference lists): its primary source cites Ihmsen Unified Spray, Foam, and Bubble Whitewater Simulation, Position Based Fluids, Position Based Dynamics, Stable Fluids; cited by Interactive Climbing Plant Modeling, Soft Step solver / substepping, Vertex Block Descent, Extended Position-Based Dynamics.
Sources
- primaryMiles Macklin, Matthias Müller, Nuttapong Chentanez, Tae-Yong Kim (2014). Unified particle physics for real-time applications. ACM Transactions on Graphics.Verified via crossref · 2026-11-29doi:10.1145/2601097.2601152
- implementationNVIDIAGameWorks (2017). NVIDIAGameWorks/FleX.GitHub API · license NOASSERTION · 2026-11-29