* @param {number} dt - time passed since last frame in ms\r
*/\r
function animate(dt) {\r
- // simulate cloth\r
+ cloth.simulate(dt / 1000);\r
+\r
+ cloth.updateGeometry(clothGeometry);\r
\r
raycaster.setFromCamera( new THREE.Vector2((mousePos.x / w) * 2 - 1, ((h - mousePos.y) / h) * 2 - 1), camera );\r
\r