From 05248048dab49af1629698f1edc882de6e717399 Mon Sep 17 00:00:00 2001 From: cybafelo Date: Sun, 23 Jun 2019 11:52:09 +0000 Subject: [PATCH] Update: entity_loaded (2c1eswtjvb.js) 14 bytes modified --- 2c1eswtjvb.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/2c1eswtjvb.js b/2c1eswtjvb.js index e105f43..79708f6 100644 --- a/2c1eswtjvb.js +++ b/2c1eswtjvb.js @@ -8,21 +8,21 @@ if (data.entity === this.parentEntity) { * Code Components */ this.beforeRender = R3.EntityManager.Instance.findComponentById('y2q95ipdcf'); -this.innerCircle = R3.EntityManager.Instance.findComponentById('ix41c5pelj'); -this.outerCircle = R3.EntityManager.Instance.findComponentById('zx8oaonomw'); +this.innerCircle = R3.EntityManager.Instance.findComponentById('lzd4cfcqah'); +//this.outerCircle = R3.EntityManager.Instance.findComponentById('zx8oaonomw'); this.beforeRender.entityLoaded = this; -this.y = 0; +this.totalTime = 0; R3.CustomCode.prototype.render = function(delta) { - this.y += delta; + this.totalTime += delta; -// this.innerCircle.rotation.y += Math.sin(this.y) * 0.15; -// this.innerCircle.updateInstance('rotation'); + this.innerCircle.rotation.z += Math.sin(this.y) * 0.15; + this.innerCircle.updateInstance('rotation'); // this.outerCircle.rotation.y -= Math.cos(this.y) * 0.15;