mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[libgdx] Fixed root bone transform for skeleton scale to use world axes.
#1373
This commit is contained in:
parent
d618a639aa
commit
ccc5b2f38b
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user