Update: CC - SpoonLib - Mouse Wheel (opxis1pjmo.js) 181 bytes modified

beta.r3js.org
-=yb4f310 2018-01-16 10:20:30 +01:00
parent 48152c7ce2
commit d4f07a906a
1 changed files with 8 additions and 1 deletions

View File

@ -6,4 +6,11 @@ if (!this.initialized) {
this.initialized = true;
}
//@ sourceURL=CustomCodeSpoonLibKeyUp.js
var mesh = GameLib.EntityManager.Instance.findComponentById('xtnu5j78bq');
mesh.rotation.x += data.event.deltaY * 0.01;
mesh.updateInstance('rotation');
console.log(data);
//@ sourceURL=CustomCodeSpoonLibMouseScroll.js