Initial Commit: CC - SpoonLib - Mouse Wheel (schmhl1bp5.js)

beta.r3js.org
-=yb4f310 2018-01-17 15:16:18 +01:00
parent ab713b6439
commit 59ff4932b4
1 changed files with 38 additions and 0 deletions

38
schmhl1bp5.js Normal file
View File

@ -0,0 +1,38 @@
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;
}
GameLib.Event.Emit(
GameLib.Event.PLAY_AUDIO,
{
name : 'Audio - Select'
}
);
//this.cylinder.rotation.x += data.event.deltaY * 0.01;
//GameLib.Event.Emit(GameLib.Event.MOUSE_UP);
//mesh.rotation.x += data.event.deltaY * 0.001;
//mesh.updateInstance('rotation');
//console.log(data);
//@ sourceURL=SpoonLibMouseWheel.js