Update: CC - SpoonLib - MouseMove (stiq4tf18d.js) 300 bytes modified

beta.r3js.org
-=yb4f310 2018-01-12 13:09:51 +01:00
parent 69af64c6ce
commit a5468d8a44
1 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,10 @@ if (!this.initialized) {
this.initialized = true;
}
console.log(data);
this.camera.position.x = ((window.innerWidth / 2 - data.event.clientX) / 15) + 32;
this.camera.position.y = ((window.innerHeight / 2 + data.event.clientY) / 15) - 32;
this.camera.updateInstance('position');
console.log('camera x:' + this.camera.position.x + ',x: ' + data.event.clientX + ',y: ' + data.event.clientY);
//@ sourceURL=mouseMove.js