2019-06-23 10:48:14 +02:00
|
|
|
if (data.entity === this.parentEntity) {
|
|
|
|
console.log('cyber-security.berlin entity loaded');
|
|
|
|
} else {
|
|
|
|
return;
|
|
|
|
}
|
2019-06-23 10:42:01 +02:00
|
|
|
|
2019-06-23 10:48:14 +02:00
|
|
|
/**
|
|
|
|
* Code Components
|
|
|
|
*/
|
|
|
|
this.beforeRender = R3.EntityManager.Instance.findComponentById('y2q95ipdcf');
|
2019-06-23 13:52:09 +02:00
|
|
|
this.innerCircle = R3.EntityManager.Instance.findComponentById('lzd4cfcqah');
|
|
|
|
//this.outerCircle = R3.EntityManager.Instance.findComponentById('zx8oaonomw');
|
2019-06-23 10:42:01 +02:00
|
|
|
|
2019-06-23 10:53:27 +02:00
|
|
|
this.beforeRender.entityLoaded = this;
|
2019-06-23 10:50:07 +02:00
|
|
|
|
2019-06-23 13:52:09 +02:00
|
|
|
this.totalTime = 0;
|
2019-06-23 11:01:37 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2019-06-23 10:51:43 +02:00
|
|
|
R3.CustomCode.prototype.render = function(delta) {
|
2019-06-23 10:55:27 +02:00
|
|
|
|
2019-06-23 13:52:09 +02:00
|
|
|
this.totalTime += delta;
|
2019-06-23 11:01:37 +02:00
|
|
|
|
2019-06-23 13:53:43 +02:00
|
|
|
this.innerCircle.rotation.z += Math.sin(this.totalTime) * 0.5;
|
2019-06-23 13:52:09 +02:00
|
|
|
this.innerCircle.updateInstance('rotation');
|
2019-06-23 10:55:27 +02:00
|
|
|
|
2019-06-23 11:01:37 +02:00
|
|
|
|
2019-06-23 13:44:33 +02:00
|
|
|
// this.outerCircle.rotation.y -= Math.cos(this.y) * 0.15;
|
|
|
|
// this.outerCircle.updateInstance('rotation');
|
2019-06-23 10:50:07 +02:00
|
|
|
}
|
|
|
|
|
2019-06-23 10:42:01 +02:00
|
|
|
return null;
|
2019-06-23 10:57:54 +02:00
|
|
|
//@ sourceURL=entityLoaded.js
|