backward fixes for rubix cube
parent
d90852e413
commit
988e7b5165
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue