Learn by building
Examples
Start with the API you use, change the live result, then copy the implementation beside it.
CORE API
Vanilla TypeScript
Create, update, and clean up a cloth instance without a framework.
REACTReact
Size the canvas, update props, and access the core instance through a ref.
PINNINGCustom attachments
See the exact values for edges, corners, partial edges, and grid points.
PERFORMANCEMultiple flags
Compare instance count, simulation resolution, and renderer presets.