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

beta.r3js.org
-=yb4f310 2018-01-16 11:48:03 +01:00
parent 7fb53da78f
commit 704ecec82d
1 changed files with 6 additions and 1 deletions

View File

@ -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');