Update: CC - SnailRunner - Mouse Move (jz3qg0174l.js) 472 bytes modified

beta.r3js.org
-=yb4f310 2018-03-09 15:30:56 +01:00
parent f83b17fe0e
commit 2e106ebee4
1 changed files with 1 additions and 20 deletions

View File

@ -3,27 +3,8 @@ if (!this.entityLoaded) {
}
if (!this.initialized) {
this.snail = this.entityLoaded.snail;
this.solar = this.entityLoaded.solar;
this.camera = this.entityLoaded.camera;
this.beforeRender = this.entityLoaded.beforeRender;
this.initialized = true;
}
this.snail.position.z -= data.event.movementX * 0.01 * this.entityLoaded.speed;
if (this.snail.position.z < -4.8) {
this.snail.position.z = -4.8;
}
if (this.snail.position.z > 4.8) {
this.snail.position.z = 4.8;
}
this.solar.position.z = this.snail.position.z;
this.snail.updateInstance('position');
this.solar.updateInstance('position');
this.adjustSnailPosition(data.event.movementX);
//@ sourceURL=mouseMove.js