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

beta.r3js.org
cybafelo 2019-06-23 11:57:07 +00:00
parent c3afc1c541
commit 0211060295
1 changed files with 3 additions and 0 deletions

View File

@ -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');