This commit is contained in:
badlogic 2019-06-13 15:58:24 +02:00
commit 8d52356475
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;