Update: CC - Entity Loaded - AR Football 2 (madnahfvrc.js) 0 bytes modified

beta.r3js.org
-=ybafelo 2018-05-12 16:06:19 +02:00
parent 2160dba948
commit dc05e52f0b
1 changed files with 29 additions and 0 deletions

29
madnahfvrc.js Normal file
View File

@ -0,0 +1,29 @@
if (data.entity === this.parentEntity) {
console.log('AR Football 2 Entity Loaded');
} else {
return;
}
this.footballPlayer = R3.EntityManager.Instance.findComponentById('fn2jjb9eou');
this.playerRotation = {
x : 0,
y : 0
};
R3.CustomCode.prototype.move = function(data) {
this.playerRotation.x += data.x;
this.playerRotation.y += data.y;
/**
* This is where i have to do the right order of transformations
*/
console.log('todo: player rotation');
// this.footballPlayer.rotation.y += data.
}.bind(this)
//@ sourceURL=entityLoaded.js