mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Fixed incorret scaling.
This commit is contained in:
parent
8a46d48e80
commit
749145301f
@ -95,21 +95,21 @@ public class Bone {
|
|||||||
worldScaleY = scaleY;
|
worldScaleY = scaleY;
|
||||||
worldRotation = rotationIK;
|
worldRotation = rotationIK;
|
||||||
}
|
}
|
||||||
float cos = MathUtils.cosDeg(worldRotation) * worldScaleX;
|
float cos = MathUtils.cosDeg(worldRotation);
|
||||||
float sin = MathUtils.sinDeg(worldRotation) * worldScaleY;
|
float sin = MathUtils.sinDeg(worldRotation);
|
||||||
if (flipX) {
|
if (flipX) {
|
||||||
m00 = -cos;
|
m00 = -cos * worldScaleX;
|
||||||
m01 = sin;
|
m01 = sin * worldScaleY;
|
||||||
} else {
|
} else {
|
||||||
m00 = cos;
|
m00 = cos * worldScaleX;
|
||||||
m01 = -sin;
|
m01 = -sin * worldScaleY;
|
||||||
}
|
}
|
||||||
if (flipY) {
|
if (flipY) {
|
||||||
m10 = -sin;
|
m10 = -sin * worldScaleX;
|
||||||
m11 = -cos;
|
m11 = -cos * worldScaleY;
|
||||||
} else {
|
} else {
|
||||||
m10 = sin;
|
m10 = sin * worldScaleX;
|
||||||
m11 = cos;
|
m11 = cos * worldScaleY;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user