X-Git-Url: https://gitweb.ps.run/cloth_sim/blobdiff_plain/f97f4ee25759ffaa6a4d4709f45fc8b7b5b24973:/Scripts/cloth.js..959c350fb8cddf7d1b31907fcc1f7f99dad52f3e:/js/cloth.js diff --git a/Scripts/cloth.js b/js/cloth.js similarity index 96% rename from Scripts/cloth.js rename to js/cloth.js index 712ed63..bd13951 100644 --- a/Scripts/cloth.js +++ b/js/cloth.js @@ -289,7 +289,7 @@ class Cloth { blow(camPos, intersects) { let face = intersects[0].face; /** vector from cam to intersection (wind) */ - let dir = intersects[0].point.clone().sub(camPos).multiplyScalar(100); + let dir = intersects[0].point.clone().sub(camPos).multiplyScalar(50); /** apply to all vertices of affected face */ this.masses[face.a].addForce(dir); this.masses[face.b].addForce(dir);