2018-01-16 14:08:56 +01:00
|
|
|
if (!this.entityLoaded) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!this.initialized) {
|
|
|
|
|
2018-01-16 14:10:22 +01:00
|
|
|
this.animationSystem = this.entityLoaded.animationSystem;
|
2018-01-16 14:08:56 +01:00
|
|
|
this.cylinder = this.entityLoaded.cylinder;
|
|
|
|
|
|
|
|
this.initialized = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-01-16 14:10:01 +01:00
|
|
|
if (this.animationSystem.started) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2018-01-16 14:46:25 +01:00
|
|
|
this.cylinder.rotation.x += data.event.movementY * 0.005;
|
2018-01-16 14:11:49 +01:00
|
|
|
this.cylinder.updateInstance('rotation');
|
|
|
|
|
2018-01-16 14:12:20 +01:00
|
|
|
//console.log(data);
|
2018-01-16 14:08:56 +01:00
|
|
|
//@ sourceURL=SpoonLibMouseMove.js
|