Update: CC - SnailRunner - Mouse Move (8nu6b5p9pb.js) 139 bytes modified

beta.r3js.org
-=yb4f310 2018-03-07 16:22:04 +01:00
parent 19e8e97ee3
commit f829bae63a
1 changed files with 9 additions and 0 deletions

View File

@ -8,6 +8,15 @@ if (!this.initialized) {
}
this.snail.position.z += data.event.movementX * data.delta * 0.000001;
if (this.snail.position.z < -0.1) {
this.snail.position.z = -0.1;
}
if (this.snail.position.z > 0.1) {
this.snail.position.z = 0.1;
}
this.snail.updateInstance('position');
//@ sourceURL=mouseMove.js