how many simulated points the mesh holds
quads across
quads down
the flat index of the point at (column, row)
whether a point is pinned
how many points currently sit away from their rest positions
pin a point where it currently stands
the current position of one mesh point
replace the gravity acceleration
replace the wind acceleration
release a pinned point; it keeps its current position and moves from there
Step the cloth and re-upload the vertex buffer. Under reduced motion a decorative garment holds its shape instead of swaying.
A garment that follows with a slight lag: a
Clothsimulation driving a textured mesh on the GPU path 414 ships (roadmap 423). The cloth spans the texture, the top edge starts pinned (a waistband, a held scarf end), andupdate(dt)steps the simulation and re-uploads the vertex buffer; UVs are never rewritten and the sprite itself is never rotated, so a skirt bends while its print stays printed. Pin more points to hang it, unpin to let it fall, and drivesetWindfrom the weather or the run cycle.Example