scale update instance

beta.r3js.org
-=yb4f310 2017-10-12 00:11:51 +02:00
parent b849a949e6
commit a14ca1e7ab
1 changed files with 17 additions and 0 deletions

View File

@ -1248,6 +1248,23 @@ GameLib.D3.Mesh.prototype.updateInstancePosition = function() {
}
};
GameLib.D3.Mesh.prototype.updateInstanceScale = function() {
this.scale.instance.set(
this.scale.x,
this.scale.y,
this.scale.z
);
this.instance.scale.copy(this.scale.instance);
if (this.helper) {
this.removeHelper();
this.createHelper();
}
};
/**
* Gets all children components of this Mesh (all linked objects only - no object references i.e. string ids)