Update: CC - SpoonLib - MouseMove (stiq4tf18d.js) 300 bytes modified
parent
69af64c6ce
commit
a5468d8a44
|
@ -7,6 +7,10 @@ if (!this.initialized) {
|
||||||
this.initialized = true;
|
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
|
//@ sourceURL=mouseMove.js
|
Loading…
Reference in New Issue