Optionaldampingshare of velocity lost per update, 0 to 1; default 0.02
Optionalgravityacceleration in world units per second squared; default { x: 0, y: 0 }
rest height in world units; must be finite and above 0
quads across; an integer of at least 1 (points across are segmentsX + 1)
quads down; an integer of at least 1 (points down are segmentsY + 1)
Optionalstiffnesshow much of each constraint error one relaxation pass removes, 0 to 1; default 0.9
rest width in world units; must be finite and above 0
Optionalwindacceleration in world units per second squared; default { x: 0, y: 0 }
Grid size and dynamics for
Cloth. The top row is the pinned attachment edge.