diff --git a/tuby5lj4di.js b/tuby5lj4di.js index 2e174ef..63edc9d 100644 --- a/tuby5lj4di.js +++ b/tuby5lj4di.js @@ -227,7 +227,7 @@ GameLib.CustomCode.prototype.updateAttributeArrays = function(alpha) { scale = this.updateInformation[i].scale; this.offsetAttribute.setXYZ( - i, + i*3, offset.current.lerp( offset.target, alpha @@ -235,18 +235,17 @@ GameLib.CustomCode.prototype.updateAttributeArrays = function(alpha) { ); this.scaleAttribute.setXYZ( - i, + i*3, scale.current.lerp( scale.target, alpha ) - ); - - this.offsetAttribute.needsUpdate = true; - this.scaleAttribute.needsUpdate = true; - + ); } + this.offsetAttribute.needsUpdate = true; + this.scaleAttribute.needsUpdate = true; + }.bind(this);