22 lines
404 B
JavaScript
22 lines
404 B
JavaScript
if (!this.entityLoaded) {
|
|
return;
|
|
}
|
|
|
|
if (!this.initialized) {
|
|
|
|
this.animationSystem = this.entityLoaded.animationSystem;
|
|
this.cylinder = this.entityLoaded.cylinder;
|
|
|
|
this.initialized = true;
|
|
}
|
|
|
|
|
|
if (this.animationSystem.started) {
|
|
return;
|
|
}
|
|
|
|
this.cylinder.rotation.x += data.event.movementY * 0.01;
|
|
this.cylinder.updateInstance('rotation');
|
|
|
|
//console.log(data);
|
|
//@ sourceURL=SpoonLibMouseMove.js
|