This is a 2D side-view companion to the 3D Spring-Mass Cloth Simulation. It runs the same mass-spring-damper family of physics, drawn flat instead of draped in 3D:
- Verlet integration: each node stores its current and previous position; velocity is inferred from the difference between them, giving stable motion without explicit force bookkeeping.
- Structural, shear and bend springs: neighbouring nodes, diagonal neighbours, and nodes two cells apart are all linked by springs, so the sheet resists stretching, shearing and sharp folding just like the 3D grid.
- Real tearing: every spring tracks how far it has stretched past its rest length. Once the stretch ratio exceeds the tear-resistance slider, that spring snaps permanently — pull hard enough and the cloth genuinely rips apart.
- Gravity and wind: gravity pulls every free node down; wind pushes sideways with built-in turbulence, billowing the sheet exactly as the wind sliders do in the 3D version.
Drag any point of the cloth with the mouse (or a finger) to grab and pull it — release to let it fall back under gravity and wind.