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

beta.r3js.org
-=yb4f310 2018-03-09 02:00:07 +01:00
parent d1c8b4a288
commit 01c2f746ed
1 changed files with 5 additions and 5 deletions

View File

@ -8,14 +8,14 @@ if (!this.initialized) {
this.initialized = true;
}
this.snail.position.z += data.event.movementX * 0.01;
this.snail.position.z -= data.event.movementX * 0.01;
if (this.snail.position.z < -9) {
this.snail.position.z = -9;
if (this.snail.position.z < -5) {
this.snail.position.z = -5;
}
if (this.snail.position.z > 9) {
this.snail.position.z = 9;
if (this.snail.position.z > 5) {
this.snail.position.z = 5;
}
this.solar.position.z = this.snail.position.z;