scale update instance
parent
73bbd79aea
commit
f295ae5af0
|
@ -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)
|
* Gets all children components of this Mesh (all linked objects only - no object references i.e. string ids)
|
||||||
|
|
Loading…
Reference in New Issue