Update: CC - Mouse Move - Moorcow (fsilsam72g.js) 7 bytes modified
parent
f3b5ca3bd8
commit
9b21545e79
|
@ -2,14 +2,14 @@
|
||||||
|
|
||||||
var camera = GameLib.EntityManager.Instance.findComponentById('knwkksjc7n');
|
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;
|
camera.lookAt.y = data.event.y * 0.01;
|
||||||
|
|
||||||
//if (camera.lookAt.x < -0.5) {
|
//if (camera.lookAt.x < -0.5) {
|
||||||
// camera.lookAt.x = -0.5;
|
// camera.lookAt.x = -0.5;
|
||||||
//}
|
//}
|
||||||
//var vector = new THREE.Vector3();
|
//var vector = new THREE.Vector3();
|
||||||
/
|
|
||||||
//vector.set(
|
//vector.set(
|
||||||
// ( data.event.clientX / window.innerWidth ) * 2 - 1,
|
// ( data.event.clientX / window.innerWidth ) * 2 - 1,
|
||||||
// - ( data.event.clientY / window.innerHeight ) * 2 + 1,
|
// - ( data.event.clientY / window.innerHeight ) * 2 + 1,
|
||||||
|
|
Loading…
Reference in New Issue