23 lines
428 B
JavaScript
23 lines
428 B
JavaScript
if (!this.entityLoaded) {
|
|
return;
|
|
}
|
|
|
|
if (!this.initialized) {
|
|
this.initialized = true;
|
|
}
|
|
|
|
var mesh = GameLib.EntityManager.Instance.findComponentById('xtnu5j78bq');
|
|
|
|
if (data.event.deltaY > 0) {
|
|
mesh.rotation.x += 0.897597901;
|
|
} else {
|
|
mesh.rotation.x -= 0.897597901;
|
|
}
|
|
|
|
|
|
//mesh.rotation.x += data.event.deltaY * 0.001;
|
|
//mesh.updateInstance('rotation');
|
|
|
|
//console.log(data);
|
|
|
|
//@ sourceURL=CustomCodeSpoonLibMouseScroll.js
|