soiz1 commited on
Commit
81fedf6
·
verified ·
1 Parent(s): 8fed027

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -1
index.html CHANGED
@@ -152,7 +152,8 @@
152
  this.lastTime = time;
153
  return;
154
  }
155
- this.windForce.set(1, 0, 5).normalize().multiplyScalar(100);
 
156
  var i = 0,
157
  max;
158
  for (i = 0, max = this.particles.length; i < max; i = i + 1) {
 
152
  this.lastTime = time;
153
  return;
154
  }
155
+ const t = Date.now() * 0.001;
156
+ this.windForce.set(Math.sin(t), 0, Math.cos(t)).normalize().multiplyScalar(300);
157
  var i = 0,
158
  max;
159
  for (i = 0, max = this.particles.length; i < max; i = i + 1) {