backward fixes for rubix cube

beta.r3js.org
-=yb4f310 2017-09-20 08:47:57 +02:00
parent d90852e413
commit 988e7b5165
1 changed files with 2 additions and 10 deletions

View File

@ -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();