Update index.html
Browse files- index.html +2 -2
index.html
CHANGED
@@ -152,7 +152,7 @@
|
|
152 |
this.lastTime = time;
|
153 |
return;
|
154 |
}
|
155 |
-
this.windForce.set(
|
156 |
var i = 0,
|
157 |
max;
|
158 |
for (i = 0, max = this.particles.length; i < max; i = i + 1) {
|
@@ -170,7 +170,7 @@
|
|
170 |
this.particles[faces[i].c].addForce(this.tmpForce);
|
171 |
}
|
172 |
for (i = 0, max = this.particles.length; i < max; i = i + 1) {
|
173 |
-
this.particles[i].addForce(new THREE.Vector3(0, -(981 * 1.4), 0).multiplyScalar(0.
|
174 |
this.particles[i].integrate(18 / 1000 * (18 / 1000));
|
175 |
}
|
176 |
for (i = 0, max = this.constrains.length; i < max; i = i + 1) {
|
|
|
152 |
this.lastTime = time;
|
153 |
return;
|
154 |
}
|
155 |
+
this.windForce.set(0.2, 1.0, 0.5).normalize().multiplyScalar(1000);
|
156 |
var i = 0,
|
157 |
max;
|
158 |
for (i = 0, max = this.particles.length; i < max; i = i + 1) {
|
|
|
170 |
this.particles[faces[i].c].addForce(this.tmpForce);
|
171 |
}
|
172 |
for (i = 0, max = this.particles.length; i < max; i = i + 1) {
|
173 |
+
this.particles[i].addForce(new THREE.Vector3(0, -(981 * 1.4), 0).multiplyScalar(0.01));
|
174 |
this.particles[i].integrate(18 / 1000 * (18 / 1000));
|
175 |
}
|
176 |
for (i = 0, max = this.constrains.length; i < max; i = i + 1) {
|