Initial Commit: CC - SpoonLib - Mouse Move (n2spe826mj.js)
parent
b541e71410
commit
34cf9960d2
|
@ -0,0 +1,22 @@
|
||||||
|
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.005;
|
||||||
|
this.cylinder.updateInstance('rotation');
|
||||||
|
|
||||||
|
//console.log(data);
|
||||||
|
//@ sourceURL=SpoonLibMouseMove.js
|
Loading…
Reference in New Issue