Update: entity_loaded (2c1eswtjvb.js) 14 bytes modified

beta.r3js.org
cybafelo 2019-06-23 11:52:09 +00:00
parent 04c17e3ea4
commit 05248048da
1 changed files with 6 additions and 6 deletions

View File

@ -8,21 +8,21 @@ if (data.entity === this.parentEntity) {
* Code Components * Code Components
*/ */
this.beforeRender = R3.EntityManager.Instance.findComponentById('y2q95ipdcf'); this.beforeRender = R3.EntityManager.Instance.findComponentById('y2q95ipdcf');
this.innerCircle = R3.EntityManager.Instance.findComponentById('ix41c5pelj'); this.innerCircle = R3.EntityManager.Instance.findComponentById('lzd4cfcqah');
this.outerCircle = R3.EntityManager.Instance.findComponentById('zx8oaonomw'); //this.outerCircle = R3.EntityManager.Instance.findComponentById('zx8oaonomw');
this.beforeRender.entityLoaded = this; this.beforeRender.entityLoaded = this;
this.y = 0; this.totalTime = 0;
R3.CustomCode.prototype.render = function(delta) { R3.CustomCode.prototype.render = function(delta) {
this.y += delta; this.totalTime += delta;
// this.innerCircle.rotation.y += Math.sin(this.y) * 0.15; this.innerCircle.rotation.z += Math.sin(this.y) * 0.15;
// this.innerCircle.updateInstance('rotation'); this.innerCircle.updateInstance('rotation');
// this.outerCircle.rotation.y -= Math.cos(this.y) * 0.15; // this.outerCircle.rotation.y -= Math.cos(this.y) * 0.15;