2018-01-17 15:16:18 +01:00
|
|
|
if (!this.entityLoaded) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!this.initialized) {
|
|
|
|
|
|
|
|
this.animationSystem = this.entityLoaded.animationSystem;
|
|
|
|
this.cylinder = this.entityLoaded.cylinder;
|
|
|
|
|
|
|
|
this.initialized = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
//this.animationSystem.stop();
|
|
|
|
//this.animationSystem.start();
|
|
|
|
|
|
|
|
if (data.event.deltaY > 0) {
|
|
|
|
this.cylinder.rotation.x += 0.897597901;
|
|
|
|
} else {
|
|
|
|
this.cylinder.rotation.x -= 0.897597901;
|
|
|
|
}
|
|
|
|
|
2018-04-10 15:48:32 +02:00
|
|
|
R3.Event.Emit(
|
|
|
|
R3.Event.PLAY_AUDIO,
|
2018-01-17 15:16:18 +01:00
|
|
|
{
|
|
|
|
name : 'Audio - Select'
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
//this.cylinder.rotation.x += data.event.deltaY * 0.01;
|
|
|
|
|
2018-04-10 15:48:32 +02:00
|
|
|
//R3.Event.Emit(R3.Event.MOUSE_UP);
|
2018-01-17 15:16:18 +01:00
|
|
|
|
|
|
|
//mesh.rotation.x += data.event.deltaY * 0.001;
|
|
|
|
//mesh.updateInstance('rotation');
|
|
|
|
|
|
|
|
//console.log(data);
|
|
|
|
|
|
|
|
//@ sourceURL=SpoonLibMouseWheel.js
|