diff --git a/spine-csharp/src/Bone.cs b/spine-csharp/src/Bone.cs index 7bf4335ba..d6d9662cd 100644 --- a/spine-csharp/src/Bone.cs +++ b/spine-csharp/src/Bone.cs @@ -152,8 +152,8 @@ namespace Spine { if (parent == null) { // Root bone. float rotationY = rotation + 90 + shearY, sx = skeleton.scaleX, sy = skeleton.scaleY; a = MathUtils.CosDeg(rotation + shearX) * scaleX * sx; - b = MathUtils.CosDeg(rotationY) * scaleY * sy; - c = MathUtils.SinDeg(rotation + shearX) * scaleX * sx; + b = MathUtils.CosDeg(rotationY) * scaleY * sx; + c = MathUtils.SinDeg(rotation + shearX) * scaleX * sy; d = MathUtils.SinDeg(rotationY) * scaleY * sy; worldX = x * sx + skeleton.x; worldY = y * sy + skeleton.y; diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Bone.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Bone.java index bea33470d..7dbdf5717 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Bone.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Bone.java @@ -114,8 +114,8 @@ public class Bone implements Updatable { Skeleton skeleton = this.skeleton; float rotationY = rotation + 90 + shearY, sx = skeleton.scaleX, sy = skeleton.scaleY; a = cosDeg(rotation + shearX) * scaleX * sx; - b = cosDeg(rotationY) * scaleY * sy; - c = sinDeg(rotation + shearX) * scaleX * sx; + b = cosDeg(rotationY) * scaleY * sx; + c = sinDeg(rotation + shearX) * scaleX * sy; d = sinDeg(rotationY) * scaleY * sy; worldX = x * sx + skeleton.x; worldY = y * sy + skeleton.y;