Update: CC - Mouse Move - Moorcow (fsilsam72g.js) 6 bytes modified
parent
def269cd9c
commit
b9fbd05bc6
|
@ -3,7 +3,7 @@
|
||||||
var camera = GameLib.EntityManager.Instance.findComponentById('knwkksjc7n');
|
var camera = GameLib.EntityManager.Instance.findComponentById('knwkksjc7n');
|
||||||
|
|
||||||
camera.lookAt.x = (-1 * (window.innerWidth / 2 - data.event.x)) * 0.025;//(window.clientWidth/ 2) + data.event.x;
|
camera.lookAt.x = (-1 * (window.innerWidth / 2 - data.event.x)) * 0.025;//(window.clientWidth/ 2) + data.event.x;
|
||||||
camera.lookAt.y = ((window.innerHeight / 2 - data.event.y)) * 0.04;
|
camera.lookAt.y = (((window.innerHeight / 2 - data.event.y)) * 0.05) - 8;
|
||||||
|
|
||||||
camera.updateInstance();
|
camera.updateInstance();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue