From f829bae63a0318de0b8b9105d26c733d399a1128 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Wed, 7 Mar 2018 16:22:04 +0100 Subject: [PATCH] Update: CC - SnailRunner - Mouse Move (8nu6b5p9pb.js) 139 bytes modified --- 8nu6b5p9pb.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/8nu6b5p9pb.js b/8nu6b5p9pb.js index 0a2353f..0fefacb 100644 --- a/8nu6b5p9pb.js +++ b/8nu6b5p9pb.js @@ -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 \ No newline at end of file