if (data.entity === this.parentEntity) { console.log('cyber-security.berlin entity loaded'); } else { return; } /** * Code Components */ this.beforeRender = R3.EntityManager.Instance.findComponentById('y2q95ipdcf'); this.innerCircle = R3.EntityManager.Instance.findComponentById('lzd4cfcqah'); //this.outerCircle = R3.EntityManager.Instance.findComponentById('zx8oaonomw'); this.beforeRender.entityLoaded = this; this.totalTime = 0; R3.CustomCode.prototype.render = function(delta) { this.totalTime += delta; this.innerCircle.rotation.z += Math.cos(this.totalTime) * 0.2; if (this.innerCircle.rotation.z >= Math.PI * 2) { this.innerCircle.rotation.z -= Math.PI * 2; } this.innerCircle.updateInstance('rotation'); // this.outerCircle.rotation.y -= Math.cos(this.y) * 0.15; // this.outerCircle.updateInstance('rotation'); } return null; //@ sourceURL=entityLoaded.js