diff --git a/madnahfvrc.js b/madnahfvrc.js new file mode 100644 index 0000000..9a10498 --- /dev/null +++ b/madnahfvrc.js @@ -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 \ No newline at end of file