soiz1 commited on
Commit
634a0fb
·
verified ·
1 Parent(s): e64bfc8

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -2
index.html CHANGED
@@ -152,7 +152,7 @@
152
  this.lastTime = time;
153
  return;
154
  }
155
- this.windForce.set(Math.sin(time / 2000), Math.cos(time / 3000), Math.sin(time / 1000)).normalize().multiplyScalar(200);
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.1));
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) {