Physics
Cloth (XPBD)
Fabric in studio light: folds, wind, draping and tears.

What happens
A sheet of cloth simulated as thousands of distance constraints: hang it in the wind, drop it onto a sphere or the floor, and watch folds, wrinkles and self-contact appear. Switch materials from silk to rubber, enable tearing, and check the stretch chart to see how hard the solver holds the fabric together.
Equations used in the module
Equations XPBD: C = |x_j - x_i| - l0 alpha_tilde = compliance / dt² delta_lambda = (-C - alpha_tilde * lambda) / (w_i + w_j + alpha_tilde) Material presets alter stretch, shear and bending compliance. Collisions are discrete constraints; this is an educational sheet model.


