From 34cf9960d20c8470997a42d46bb95a4a119df18a Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Wed, 17 Jan 2018 15:16:18 +0100 Subject: [PATCH] Initial Commit: CC - SpoonLib - Mouse Move (n2spe826mj.js) --- n2spe826mj.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 n2spe826mj.js diff --git a/n2spe826mj.js b/n2spe826mj.js new file mode 100644 index 0000000..1fc9ae9 --- /dev/null +++ b/n2spe826mj.js @@ -0,0 +1,22 @@ +if (!this.entityLoaded) { + return; +} + +if (!this.initialized) { + + this.animationSystem = this.entityLoaded.animationSystem; + this.cylinder = this.entityLoaded.cylinder; + + this.initialized = true; +} + + +if (this.animationSystem.started) { + return; +} + +this.cylinder.rotation.x += data.event.movementY * 0.005; +this.cylinder.updateInstance('rotation'); + +//console.log(data); +//@ sourceURL=SpoonLibMouseMove.js \ No newline at end of file