2018-01-16 09:37:22 +01:00
|
|
|
if (!this.entityLoaded) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!this.initialized) {
|
2018-01-17 11:38:39 +01:00
|
|
|
|
|
|
|
this.animationSystem = this.entityLoaded.animationSystem;
|
2018-01-16 15:06:19 +01:00
|
|
|
this.cylinder = this.entityLoaded.cylinder;
|
|
|
|
|
2018-01-16 09:37:22 +01:00
|
|
|
this.initialized = true;
|
|
|
|
}
|
|
|
|
|
2018-01-17 11:57:30 +01:00
|
|
|
//this.animationSystem.stop();
|
|
|
|
//this.animationSystem.start();
|
2018-01-17 12:14:07 +01:00
|
|
|
|
2018-01-16 11:48:03 +01:00
|
|
|
if (data.event.deltaY > 0) {
|
2018-01-16 15:06:19 +01:00
|
|
|
this.cylinder.rotation.x += 0.897597901;
|
2018-01-16 11:48:03 +01:00
|
|
|
} else {
|
2018-01-16 15:06:19 +01:00
|
|
|
this.cylinder.rotation.x -= 0.897597901;
|
2018-01-16 11:48:03 +01:00
|
|
|
}
|
2018-01-17 11:57:30 +01:00
|
|
|
|
2018-01-17 12:14:07 +01:00
|
|
|
//this.cylinder.rotation.x += data.event.deltaY * 0.01;
|
|
|
|
|
|
|
|
//GameLib.Event.Emit(GameLib.Event.MOUSE_UP);
|
2018-01-16 11:48:03 +01:00
|
|
|
|
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
|
|
|
|
2018-01-17 12:14:07 +01:00
|
|
|
//@ sourceURL=SpoonLibMouseWheel.js
|