if (!this.entityLoaded) { return; } if (!this.initialized) { this.camera = this.entityLoaded.camera; this.initialized = true; } this.camera.position.x = 0.2 * (window.innerWidth - (window.innerWidth / 2 + data.event.clientX)); this.camera.position.y = -0.2 * (window.innerHeight - (window.innerHeight / 2 + data.event.clientY)); this.camera.position.z = Math.cos(this.camera.position.y / 100) * Math.sin(this.camera.position.x / 100) * 100; this.camera.updateInstance('position'); this.camera.lookAt.x = 32; this.camera.lookAt.y = 32; this.camera.lookAt.z = 0; this.camera.updateInstance('lookAt'); //console.log('camera x:' + this.camera.position.x + ',y: ' + this.camera.position.y + ',z: ' + this.camera.position.z); //@ sourceURL=mouseMove.js