r3-custom-code/madnahfvrc.js

29 lines
556 B
JavaScript
Raw Normal View History

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