From 988e7b51659ddecbf80ed1c7911b1f4644159f76 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Wed, 20 Sep 2017 08:47:57 +0200 Subject: [PATCH] backward fixes for rubix cube --- src/game-lib-d3-mesh-0.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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();