Fabric Physics
Fabric is modeled as a grid of points (masses) connected by springs (constraints).
Verlet Integration:
Instead of storing velocity, we store current and previous
point positions.
v = pos - oldPos
This makes the simulation very stable without complex math.
Constraint Solving:
If two points drift too far apart, we simply โpushโ them back together one against the other, to restore spring length.
LMB + Drag: Cut fabric
RMB + Drag: Pull fabric
Try cutting or pulling the fabric!