diff --git a/src/game-lib-d3-mesh-0.js b/src/game-lib-d3-mesh-0.js index c9b6432..a7cc640 100644 --- a/src/game-lib-d3-mesh-0.js +++ b/src/game-lib-d3-mesh-0.js @@ -934,7 +934,7 @@ GameLib.D3.Mesh.prototype.centerAroundOrigin = function() { this.position.y = -position.y; this.position.z = -position.z; - this.updateInstance(); + this.updateInstancePosition(); }; GameLib.D3.Mesh.prototype.getDistanceFromCenter = function() { @@ -968,15 +968,7 @@ GameLib.D3.Mesh.prototype.applyPositionRotationScale = function() { this.scale.z = 1; this.instance.scale.set(1,1,1); - this.updateInstanceRotationFromAxisAngle( - new GameLib.Vector3( - this.graphics, - new GameLib.API.Vector3( - 0,0,0 - ) - ), - 0 - ); + this.updateInstanceRotationFromAxisAngle(); this.instance.updateMatrix();