Initial Commit: CC - SpoonLib - Mouse Move (n2spe826mj.js)

beta.r3js.org
-=yb4f310 2018-01-17 15:16:18 +01:00
parent b541e71410
commit 34cf9960d2
1 changed files with 22 additions and 0 deletions

22
n2spe826mj.js Normal file
View File

@ -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