PicoGL.js Example: Cloth
(Use mouse to control ball)
Source code