From d4f07a906a91c6368461d9c005949d59bc175f75 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 16 Jan 2018 10:20:30 +0100 Subject: [PATCH] Update: CC - SpoonLib - Mouse Wheel (opxis1pjmo.js) 181 bytes modified --- opxis1pjmo.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/opxis1pjmo.js b/opxis1pjmo.js index 08ed4e9..347910e 100644 --- a/opxis1pjmo.js +++ b/opxis1pjmo.js @@ -6,4 +6,11 @@ if (!this.initialized) { this.initialized = true; } -//@ sourceURL=CustomCodeSpoonLibKeyUp.js \ No newline at end of file +var mesh = GameLib.EntityManager.Instance.findComponentById('xtnu5j78bq'); + +mesh.rotation.x += data.event.deltaY * 0.01; +mesh.updateInstance('rotation'); + +console.log(data); + +//@ sourceURL=CustomCodeSpoonLibMouseScroll.js \ No newline at end of file