Update: CC - Mouse Move - Moorcow (fsilsam72g.js) 7 bytes modified

beta.r3js.org
-=yb4f310 2017-11-06 20:55:56 +01:00
parent f3b5ca3bd8
commit 9b21545e79
1 changed files with 2 additions and 2 deletions

View File

@ -2,14 +2,14 @@
var camera = GameLib.EntityManager.Instance.findComponentById('knwkksjc7n');
camera.lookAt.x = data.event.x * 0.01;//(window.clientWidth/ 2) + data.event.x;
camera.lookAt.x = (data.event.x * 0.01) - 0.5;//(window.clientWidth/ 2) + data.event.x;
camera.lookAt.y = data.event.y * 0.01;
//if (camera.lookAt.x < -0.5) {
// camera.lookAt.x = -0.5;
//}
//var vector = new THREE.Vector3();
/
//vector.set(
// ( data.event.clientX / window.innerWidth ) * 2 - 1,
// - ( data.event.clientY / window.innerHeight ) * 2 + 1,