Library for PBD and XPBD, aiming at including most type of constraints on mesh and tetrahedron.
- Cloth simulation
- Deformable simulaiton
- Complementary Dynamics
- Hash grid collision
- Rigid body simulation
- Rod
Python version 3.9
pip install taichi
pip install usd-core
pip install meshio
pip install pillow
pip install glfw
pip install PyOpenGL PyOpenGL_accelerate
Run scripts in test
folder
For example:
python -m test.cloth_sim
- Cloth
python -m test.cloth_sim
Constraints:
- Bending
- Length
- Balloon
python -m test.balloon
Constraints:
- Bending
- Length
- Volume preserving
- Particles Collision
python -m test.dem3d
Solve collision of large group of particles with hash grid
- Neo-Hookean Deformable Objects
python -m test.fish_deform
Based on this paper and the live demo.
For comparison, there is a mass spring version.
python -m test.fish_spring
- Complementary Dynamics
python -m test.fish_comp
Based on complementary dynamics and its modified PBD version.