r3-custom-code/stiq4tf18d.js

16 lines
481 B
JavaScript
Raw Normal View History

if (!this.entityLoaded) {
return;
}
if (!this.initialized) {
this.camera = this.entityLoaded.camera;
this.initialized = true;
}
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