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