diff --git a/sossh1zbtq.js b/sossh1zbtq.js new file mode 100644 index 0000000..e8936bf --- /dev/null +++ b/sossh1zbtq.js @@ -0,0 +1,26 @@ +if (!this.entityLoaded) { + return; +} + +if (!this.initialized) { + this.snail = this.entityLoaded.snail; + this.solar = this.entityLoaded.solar; + this.initialized = true; +} + +this.snail.position.z += data.event.movementX * 0.0002; + +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.solar.position.z = this.snail.position.z; + +this.snail.updateInstance('position'); +this.solar.updateInstance('position'); + +//@ sourceURL=mouseMove.js \ No newline at end of file