Update: CC - Entity Loaded - AR Football 3 (ff0fsum4zx.js) 98 bytes modified

beta.r3js.org
Theunis Johannes Botha 2018-05-28 12:38:42 +02:00
parent fcd08eae9a
commit e683c7a690
1 changed files with 14 additions and 4 deletions

View File

@ -79,7 +79,9 @@ this.ballY = this.football.instance.geometry.boundingSphere.radius / 2;
this.activeBall = null;
this.invertMouse = false;
this.invertY = false;
this.invertX = false;
if (this.debug) {
this.arrowHelper = new THREE.ArrowHelper(
@ -306,13 +308,21 @@ R3.CustomCode.prototype.render = function(delta) {
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;
if (data && data.y) {
if (this.invertMouse) {
if (this.invertY) {
y = data.y;
} else {
y = -data.y;