2017-11-06 20:52:14 +01:00
|
|
|
//console.log(data);
|
2017-11-06 20:44:12 +01:00
|
|
|
|
|
|
|
var camera = GameLib.EntityManager.Instance.findComponentById('knwkksjc7n');
|
|
|
|
|
2017-11-06 21:01:43 +01:00
|
|
|
camera.lookAt.x = (-1 * (window.innerWidth / 2 - data.event.x)) * 0.025;//(window.clientWidth/ 2) + data.event.x;
|
2017-11-06 21:50:11 +01:00
|
|
|
camera.lookAt.y = (((window.innerHeight / 2 - data.event.y)) * 0.05) - 8;
|
2017-11-06 20:44:12 +01:00
|
|
|
|
|
|
|
camera.updateInstance();
|
2017-11-06 20:38:13 +01:00
|
|
|
|
2017-11-07 00:51:59 +01:00
|
|
|
var cursor = GameLib.EntityManager.Instance.findComponentById('oxpg88pgzv');
|
|
|
|
cursor.position.x = (-1 * (window.innerWidth / 2 - data.event.x)) * 0.025;
|
|
|
|
cursor.position.y = (((window.innerHeight / 2 - data.event.y)) * 0.05);
|
|
|
|
cursor.updateInstance();
|
|
|
|
|
2017-11-07 01:05:06 +01:00
|
|
|
var thrower = GameLib.EntityManager.Instance.findComponentById('01viz3rw6l');
|
2017-11-07 01:26:11 +01:00
|
|
|
thrower.rotation.x = 0.5 + cursor.position.y * 0.12;
|
2017-11-07 01:05:06 +01:00
|
|
|
thrower.rotation.y = Math.PI + (cursor.position.x * -0.1);
|
|
|
|
thrower.updateInstance();
|
|
|
|
|
2017-11-06 20:38:13 +01:00
|
|
|
//@ sourceURL=mouseMove.js
|