Update: CC - SnailRunner - Before Render (94xi7aitax.js) 240 bytes modified

beta.r3js.org
-=yb4f310 2018-03-09 02:52:33 +01:00
parent c6e47bb064
commit 964488447a
1 changed files with 9 additions and 0 deletions

View File

@ -9,6 +9,8 @@ if (!this.initialized) {
*/
this.sections = this.entityLoaded.sections;
this.cloud = this.entityLoaded.cloud;
this.camera = this.entityLoaded.camera;
this.snail = this.entityLoaded.snail;
this.time = 0;
@ -46,6 +48,13 @@ this.sections.map(
}
);
if (this.camera.position.z < this.snail.position.z) {
this.camera.position.z += data.delta * 0.1;
} else {
this.camera.position.z -= data.delta * 0.1;
}
this.time += data.delta;
if (this.time > 5) {