Game dev
Saved & recent

Cloth and soft bodies

Related terms: cloth simulation, soft body, spring-mass, rope, hair

Things that bend are simulated as points linked by springs that try to keep their length. On each step the points move under gravity and wind, then the springs pull them back into shape.

A grid of points is cloth. A chain is a rope or a strand of hair. A blob that also keeps its volume is jelly. It is expensive, so it often runs on the GPU and collides with a few simple shapes instead of the full character.

Further reading
Godot: SoftBody3D
pinned corner spring link wind
The top corners stay pinned as gravity and wind move the other particles. Spring links pull neighbors toward their rest distances.

View in the full Game dev collection