瀏覽代碼

[ts] Port of commit ccc5b2f: Fixed root bone transform for skeleton. See #1379.

badlogic 6 年之前
父節點
當前提交
33dce937bf
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      spine-ts/core/src/Bone.ts

+ 2 - 2
spine-ts/core/src/Bone.ts

@@ -80,8 +80,8 @@ module spine {
 				let sx = skeleton.scaleX;
 				let sx = skeleton.scaleX;
 				let sy = skeleton.scaleY;
 				let sy = skeleton.scaleY;
 				this.a = MathUtils.cosDeg(rotation + shearX) * scaleX * sx;
 				this.a = MathUtils.cosDeg(rotation + shearX) * scaleX * sx;
-				this.b = MathUtils.cosDeg(rotationY) * scaleY * sy;
-				this.c = MathUtils.sinDeg(rotation + shearX) * scaleX * sx;
+				this.b = MathUtils.cosDeg(rotationY) * scaleY * sx;
+				this.c = MathUtils.sinDeg(rotation + shearX) * scaleX * sy;
 				this.d = MathUtils.sinDeg(rotationY) * scaleY * sy;
 				this.d = MathUtils.sinDeg(rotationY) * scaleY * sy;
 				this.worldX = x * sx + skeleton.x;
 				this.worldX = x * sx + skeleton.x;
 				this.worldY = y * sy + skeleton.y;
 				this.worldY = y * sy + skeleton.y;