From 5ef45cff518bfb1dd41109c11cc1a8cebaab6b59 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 16 Jan 2018 15:06:19 +0100 Subject: [PATCH] Update: CC - SpoonLib - Mouse Wheel (opxis1pjmo.js) 40 bytes modified --- opxis1pjmo.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/opxis1pjmo.js b/opxis1pjmo.js index 5a88726..5240594 100644 --- a/opxis1pjmo.js +++ b/opxis1pjmo.js @@ -3,19 +3,18 @@ if (!this.entityLoaded) { } if (!this.initialized) { + + this.cylinder = this.entityLoaded.cylinder; + this.initialized = true; } -var mesh = GameLib.EntityManager.Instance.findComponentById('xtnu5j78bq'); - if (data.event.deltaY > 0) { - mesh.rotation.x += 0.897597901; + this.cylinder.rotation.x += 0.897597901; } else { - mesh.rotation.x -= 0.897597901; + this.cylinder.rotation.x -= 0.897597901; } -console.log(mesh.rotation.x); - //mesh.rotation.x += data.event.deltaY * 0.001; //mesh.updateInstance('rotation');