Apex › Storage & databases

How game physics simulates rope & cloth

The Verlet integration behind cloth, rope, hair, and ragdolls. Store only positions — now and last frame — and their difference IS the velocity, so momentum is free. Advance each point by its momentum plus gravity, then satisfy distance constraints by moving points back to their rest length (relaxation). No stored velocity, no springs, and unconditionally stable. A live rope you can nudge; turn the relaxation passes up to stiffen it, down to make it rubbery.

More in Storage & databases