Update: CC - Entity Loaded - AR Football 2 (madnahfvrc.js) 0 bytes modified
parent
2160dba948
commit
dc05e52f0b
|
@ -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
|
Loading…
Reference in New Issue