Physics · Study 014
Cloth in Wind
A sheet of cloth simulated with Verlet integration, pinned at seven points and blown by gusting wind. Sweep your pointer to push it.
What you're looking at
The cloth is a grid of points joined by links that want to stay a fixed length. Each frame every point coasts on its previous motion, picks up gravity and wind, and then the links are relaxed several times to pull stretched pairs back together. Seven points along the top are nailed in place.
The idea behind it
This position based approach became the standard for real time cloth in games because it is stable and simple. Velocity is never stored. It is implied by where a point was last frame, so corrections to position automatically become corrections to motion.
Try this
Sweep the pointer through the sheet to drag the fabric. Fast sweeps throw it further.