From 33dce937bf0af4aa7e77eefcbee02d5901141341 Mon Sep 17 00:00:00 2001 From: badlogic Date: Thu, 13 Jun 2019 16:03:26 +0200 Subject: [PATCH] [ts] Port of commit ccc5b2f: Fixed root bone transform for skeleton. See #1379. --- spine-ts/core/src/Bone.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-ts/core/src/Bone.ts b/spine-ts/core/src/Bone.ts index 1d82e3b01..ddcbf13d2 100644 --- a/spine-ts/core/src/Bone.ts +++ b/spine-ts/core/src/Bone.ts @@ -80,8 +80,8 @@ module spine { let sx = skeleton.scaleX; let sy = skeleton.scaleY; 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.worldX = x * sx + skeleton.x; this.worldY = y * sy + skeleton.y;