From 55c45555b50176520527033d73ca6afae0e7d03e Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Mon, 6 Nov 2017 20:44:12 +0100 Subject: [PATCH] Update: CC - Mouse Move - Moorcow (fsilsam72g.js) 259 bytes modified --- fsilsam72g.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/fsilsam72g.js b/fsilsam72g.js index 7f6f3d3..ff09475 100644 --- a/fsilsam72g.js +++ b/fsilsam72g.js @@ -1,3 +1,14 @@ -console.log('hi'); +console.log(data); + +var camera = GameLib.EntityManager.Instance.findComponentById('knwkksjc7n'); + +camera.lookAt.x -= data.event.movementX * 0.01; +camera.lookAt.y -= data.event.movementY * 0.01; + +if (camera.lookAt.x < -0.5) { + camera.lookAt.x = -0.5; +} + +camera.updateInstance(); //@ sourceURL=mouseMove.js \ No newline at end of file