|
@@ -329,10 +329,11 @@ namespace Spine {
|
|
|
|
|
|
public float WorldToLocalRotation (float worldRotation) {
|
|
public float WorldToLocalRotation (float worldRotation) {
|
|
float sin = MathUtils.SinDeg(worldRotation), cos = MathUtils.CosDeg(worldRotation);
|
|
float sin = MathUtils.SinDeg(worldRotation), cos = MathUtils.CosDeg(worldRotation);
|
|
- return MathUtils.Atan2(a * sin - c * cos, d * cos - b * sin) * MathUtils.RadDeg;
|
|
|
|
|
|
+ return MathUtils.Atan2(a * sin - c * cos, d * cos - b * sin) * MathUtils.RadDeg + rotation - shearX;
|
|
}
|
|
}
|
|
|
|
|
|
public float LocalToWorldRotation (float localRotation) {
|
|
public float LocalToWorldRotation (float localRotation) {
|
|
|
|
+ localRotation -= rotation - shearX;
|
|
float sin = MathUtils.SinDeg(localRotation), cos = MathUtils.CosDeg(localRotation);
|
|
float sin = MathUtils.SinDeg(localRotation), cos = MathUtils.CosDeg(localRotation);
|
|
return MathUtils.Atan2(cos * c + sin * d, cos * a + sin * b) * MathUtils.RadDeg;
|
|
return MathUtils.Atan2(cos * c + sin * d, cos * a + sin * b) * MathUtils.RadDeg;
|
|
}
|
|
}
|