r3-custom-code/fsilsam72g.js

10 lines
341 B
JavaScript
Raw Normal View History

//console.log(data);
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.y = (((window.innerHeight / 2 - data.event.y)) * 0.05) - 8;
camera.updateInstance();
//@ sourceURL=mouseMove.js