Update: CC - Entity Loaded - AR Football 3 (ff0fsum4zx.js) 59 bytes modified
parent
2cf1410589
commit
d5509d9d7f
|
@ -57,7 +57,7 @@ this.kickDistance = 0;
|
||||||
|
|
||||||
this.raycaster = new THREE.Raycaster();
|
this.raycaster = new THREE.Raycaster();
|
||||||
|
|
||||||
this.debug = true;
|
this.debug = false;
|
||||||
|
|
||||||
this.gravity = -9.8;
|
this.gravity = -9.8;
|
||||||
|
|
||||||
|
@ -225,10 +225,8 @@ R3.CustomCode.prototype.move = function(data) {
|
||||||
var x = data.x;
|
var x = data.x;
|
||||||
var y = data.y;
|
var y = data.y;
|
||||||
|
|
||||||
if (data.source === 'mouse' || 'touch') {
|
x *= 0.0025;
|
||||||
x *= 0.0025;
|
y *= 0.0075;
|
||||||
y *= 0.0075;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.playerRotation.x += x;
|
this.playerRotation.x += x;
|
||||||
this.playerRotation.y += y;
|
this.playerRotation.y += y;
|
||||||
|
|
Loading…
Reference in New Issue