2018-01-16 09:37:22 +01:00
|
|
|
if (!this.entityLoaded) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!this.initialized) {
|
|
|
|
this.initialized = true;
|
|
|
|
}
|
|
|
|
|
2018-01-16 10:20:30 +01:00
|
|
|
var mesh = GameLib.EntityManager.Instance.findComponentById('xtnu5j78bq');
|
|
|
|
|
2018-01-16 11:48:03 +01:00
|
|
|
if (data.event.deltaY > 0) {
|
2018-01-16 11:54:20 +01:00
|
|
|
mesh.rotation.x += 0.897597901;
|
2018-01-16 11:48:03 +01:00
|
|
|
} else {
|
2018-01-16 11:54:20 +01:00
|
|
|
mesh.rotation.x -= 0.897597901;
|
2018-01-16 11:48:03 +01:00
|
|
|
}
|
|
|
|
|
2018-01-16 14:13:13 +01:00
|
|
|
console.log(mesh.rotation.x);
|
2018-01-16 11:47:07 +01:00
|
|
|
|
|
|
|
//mesh.rotation.x += data.event.deltaY * 0.001;
|
|
|
|
//mesh.updateInstance('rotation');
|
2018-01-16 10:20:30 +01:00
|
|
|
|
2018-01-16 11:14:21 +01:00
|
|
|
//console.log(data);
|
2018-01-16 10:20:30 +01:00
|
|
|
|
|
|
|
//@ sourceURL=CustomCodeSpoonLibMouseScroll.js
|