Cloth & Rope
Verlet cloth physics: drag, pin, cut and tear curtains, flags, nets and rope bridges.
- Pinned point
With Drag, grab and pull the cloth until it tears; with Scissors, drag across links to cut them; with Pin, tap a point to pin or free it. Rerun starts again from 0 s with your pins and cuts. Colors show tension: blue is slack, red is about to rip.
How is Cloth & Rope working for you?
About Cloth & Rope
Cloth & Rope is an interactive physics simulation built on Verlet integration, the technique Thomas Jakobsen popularized for game physics in his 2001 paper on the ragdolls of Hitman: Codename 47. Each piece of fabric is a mesh of point masses joined by springy links. Every step the points coast forward on their own momentum, gravity and wind push them, and then each link nudges its two ends back toward its rest length — repeated a few times, that relaxation makes the mesh behave like cloth, netting or rope.
Because positions are stored instead of velocities, you can grab any point and drag it, pin it in place, or snip links with the scissors, and the rest of the mesh responds naturally. Pull too hard and links stretched beyond their tear limit snap, so curtains rip and ropes break. Colors show tension in every link, from slack blue through yellow to red just before it tears.
Play with a curtain on rings, a flag flapping in the wind, a hammock, a sagging rope bridge, a net or a set of hanging ropes. Adjust gravity, wind, air damping, stiffness, the number of solver passes and the tear threshold, shade the fabric or show only the threads, then export a PNG or record a video or GIF.
How to use Cloth & Rope
- Pick a scene. Choose Curtain, Flag, Hammock, Rope bridge, Net or Hanging ropes.
- Grab and drag. With Drag selected, press near any point and move: the cloth follows. Release while moving to throw it.
- Cut and pin. Scissors cuts every link your stroke crosses. Pin toggles a fixed point under your cursor, so you can rehang the cloth anywhere. Rerun hangs the cloth again from rest with your pins and cuts; Restart clears them and starts the scene again; Reset also returns every setting to its default.
- Add wind. Set a steady Wind (left or right) and press Gust for a sudden blast. Air damping controls how quickly motion dies away.
- Change the material. Lower Stiffness for stretchy fabric, raise Solver passes for a firmer, more accurate mesh, and lower Tear at stretch to make it rip easily.
- Export. Save a PNG or record a short video or GIF. Record 30 s from the start runs the same setup again from the beginning and records its first 30 seconds, frame by frame.
Frequently asked questions
What is Verlet integration?
Verlet integration moves each point using its current and previous positions instead of an explicit velocity: the next position is the current one plus the difference from last time, plus the effect of forces. It is simple, stable and makes constraints easy to enforce, which is why it is widely used for cloth, ropes and ragdolls in games.
How are the links kept the right length?
After moving the points, the simulation visits every link and moves its two ends toward or away from each other so the link returns to its rest length (pinned points don't move). Fixing one link slightly disturbs its neighbors, so the pass is repeated several times; more Solver passes give stiffer, more accurate cloth.
Why does the cloth tear?
Each link remembers its rest length. If you stretch a link beyond the Tear at stretch multiple of that length — by pulling, by strong wind or by a heavy sag — it snaps and is removed, and the tear can spread as the load shifts to neighboring links.
What do the colors mean?
With Show tension on, each link is colored by how stretched it is: blue links are at or near their rest length, yellow ones are under load and red ones are close to tearing.





