diff --git a/opxis1pjmo.js b/opxis1pjmo.js index 1a350d8..4e2afdc 100644 --- a/opxis1pjmo.js +++ b/opxis1pjmo.js @@ -8,7 +8,12 @@ if (!this.initialized) { var mesh = GameLib.EntityManager.Instance.findComponentById('xtnu5j78bq'); -mesh.rotation.x += 0.89; +if (data.event.deltaY > 0) { + mesh.rotation.x += 0.89; +} else { + mesh.rotation.x -= 0.89; +} + //mesh.rotation.x += data.event.deltaY * 0.001; //mesh.updateInstance('rotation');