Update: CC - Entity Loaded - AR Football 3 (ff0fsum4zx.js) 98 bytes modified
parent
fcd08eae9a
commit
e683c7a690
|
@ -79,7 +79,9 @@ this.ballY = this.football.instance.geometry.boundingSphere.radius / 2;
|
||||||
|
|
||||||
this.activeBall = null;
|
this.activeBall = null;
|
||||||
|
|
||||||
this.invertMouse = false;
|
this.invertY = false;
|
||||||
|
|
||||||
|
this.invertX = false;
|
||||||
|
|
||||||
if (this.debug) {
|
if (this.debug) {
|
||||||
this.arrowHelper = new THREE.ArrowHelper(
|
this.arrowHelper = new THREE.ArrowHelper(
|
||||||
|
@ -306,13 +308,21 @@ R3.CustomCode.prototype.render = function(delta) {
|
||||||
|
|
||||||
R3.CustomCode.prototype.move = function(data) {
|
R3.CustomCode.prototype.move = function(data) {
|
||||||
|
|
||||||
var x = data.x || 0;
|
var x = 0;
|
||||||
|
|
||||||
|
if (data && data.x) {
|
||||||
|
if (this.invertX) {
|
||||||
|
x = data.x;
|
||||||
|
} else {
|
||||||
|
x = -data.x;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var y = 0;
|
var y = 0;
|
||||||
|
|
||||||
if (data && data.y) {
|
if (data && data.y) {
|
||||||
|
|
||||||
if (this.invertMouse) {
|
if (this.invertY) {
|
||||||
y = data.y;
|
y = data.y;
|
||||||
} else {
|
} else {
|
||||||
y = -data.y;
|
y = -data.y;
|
||||||
|
|
Loading…
Reference in New Issue