Update: CC - Entity Loaded - AR Football 3 (ff0fsum4zx.js) 153 bytes modified
parent
b6b421f46d
commit
0fcf3a913c
|
@ -489,10 +489,9 @@ R3.Event.Subscribe(
|
||||||
this.footballPlayer.instance.rotation.z = 0;
|
this.footballPlayer.instance.rotation.z = 0;
|
||||||
|
|
||||||
this.footballPlayer.instance.position.x = 0;
|
this.footballPlayer.instance.position.x = 0;
|
||||||
this.footballPlayer.instance.position.y = 0;
|
|
||||||
this.footballPlayer.instance.position.z = 0;
|
|
||||||
|
|
||||||
this.footballPlayer.instance.position.y = this.playerY;
|
this.footballPlayer.instance.position.y = this.playerY;
|
||||||
|
this.footballPlayer.instance.position.z = this.football.instance.geometry.boundingSphere.radius;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reset football
|
* Reset football
|
||||||
|
@ -503,10 +502,8 @@ R3.Event.Subscribe(
|
||||||
this.football.instance.rotation.z = 0;
|
this.football.instance.rotation.z = 0;
|
||||||
|
|
||||||
this.football.instance.position.x = 0;
|
this.football.instance.position.x = 0;
|
||||||
this.football.instance.position.y = 0;
|
|
||||||
this.football.instance.position.z = 0;
|
|
||||||
|
|
||||||
this.football.instance.position.y = this.ballY;
|
this.football.instance.position.y = this.ballY;
|
||||||
|
this.football.instance.position.z = 0;
|
||||||
|
|
||||||
this.score = 0;
|
this.score = 0;
|
||||||
|
|
||||||
|
@ -551,6 +548,10 @@ R3.Event.Subscribe(
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
this.footballPlayer.instance.position.y = this.playerY;
|
||||||
|
this.footballPlayer.instance.position.z = this.football.instance.geometry.boundingSphere.radius;
|
||||||
|
this.football.instance.position.y = this.ballY;
|
||||||
|
|
||||||
R3.Event.Emit(R3.Event.GAME_LOADED);
|
R3.Event.Emit(R3.Event.GAME_LOADED);
|
||||||
|
|
||||||
//@ sourceURL=entityLoaded.js
|
//@ sourceURL=entityLoaded.js
|
||||||
|
|
Loading…
Reference in New Issue