From 02110602953e156d93411118ba87013b21fdfcd1 Mon Sep 17 00:00:00 2001 From: cybafelo Date: Sun, 23 Jun 2019 11:57:07 +0000 Subject: [PATCH] Update: entity_loaded (2c1eswtjvb.js) 98 bytes modified --- 2c1eswtjvb.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/2c1eswtjvb.js b/2c1eswtjvb.js index 548e112..b6472dc 100644 --- a/2c1eswtjvb.js +++ b/2c1eswtjvb.js @@ -22,6 +22,9 @@ 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 -= Math.PI * 2; + } this.innerCircle.updateInstance('rotation');