Ver código fonte

fixed bone.setYawPitchRoll (forgot to update bone._rotationMatrix)

Adam Bowman 8 anos atrás
pai
commit
33ddeca0d4
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      src/Bones/babylon.bone.ts

+ 2 - 0
src/Bones/babylon.bone.ts

@@ -273,6 +273,8 @@
 
             var parentScale = BABYLON.Tmp.Matrix[3];
             var parentScaleInv = BABYLON.Tmp.Matrix[4];
+
+            this._rotationMatrix.multiplyToRef(rmat, this._rotationMatrix);
             
             if (parent) {