Update: CC - SnailRunner - Before Render (rlley2ki2i.js) 1 bytes modified

beta.r3js.org
-=yb4f310 2018-03-07 17:32:17 +01:00
parent 8cb2397773
commit 05c4d037d6
1 changed files with 4 additions and 3 deletions

View File

@ -13,22 +13,23 @@ if (!this.initialized) {
this.time = 0;
this.spawnCloud = function() {
this.cloud.position.x = -3;
this.cloud.position.x = 3;
this.cloud.updateInstance('position');
}
this.initialized = true;
}
this.road.rotation.z += 0.004 * data.delta;
this.road.updateInstance('rotation');
this.cloud.position.x -= 0.1 * data.delta;
this.cloud.position.x -= data.delta * 2;
this.time += data.delta;
if (this.time > 3) {
this.spawnCloud();
//this.spawnCloud();
this.time = 0;
}