diff --git a/stiq4tf18d.js b/stiq4tf18d.js index b83e094..be10ae2 100644 --- a/stiq4tf18d.js +++ b/stiq4tf18d.js @@ -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 \ No newline at end of file