From 34c17e9691bf3fabeac77a23da823618d0bd520d Mon Sep 17 00:00:00 2001 From: cybafelo Date: Sun, 23 Jun 2019 09:01:37 +0000 Subject: [PATCH] Update: entity_loaded (2c1eswtjvb.js) 58 bytes modified --- 2c1eswtjvb.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/2c1eswtjvb.js b/2c1eswtjvb.js index 4e59a81..c3d009a 100644 --- a/2c1eswtjvb.js +++ b/2c1eswtjvb.js @@ -13,12 +13,19 @@ this.outerCircle = R3.EntityManager.Instance.findComponentById('zx8oaonomw'); this.beforeRender.entityLoaded = this; +this.y = 0; + + + R3.CustomCode.prototype.render = function(delta) { - this.innerCircle.rotation.y += delta; + this.y += delta; + + this.innerCircle.rotation.y += Math.sin(this.y); this.innerCircle.updateInstance('rotation'); - this.outerCircle.rotation.y -= delta; + + this.outerCircle.rotation.y -= Math.sin(delta); this.outerCircle.updateInstance('rotation'); }