mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Simplified noRotationOrReflection.
This commit is contained in:
parent
3a3f0cc2f4
commit
92f91bae58
@ -162,10 +162,11 @@ public class Bone implements Updatable {
|
|||||||
psy = (float)Math.sqrt(pb * pb + pd * pd);
|
psy = (float)Math.sqrt(pb * pb + pd * pd);
|
||||||
prx = 90 - atan2(pd, pb) * radDeg;
|
prx = 90 - atan2(pd, pb) * radDeg;
|
||||||
}
|
}
|
||||||
pa = cosDeg(prx) * psx;
|
float cos = cosDeg(prx), sin = sinDeg(prx);
|
||||||
pb = cosDeg(prx + 90) * psy;
|
pa = cos * psx;
|
||||||
pc = sinDeg(prx) * psx;
|
pb = -sin * psy;
|
||||||
pd = sinDeg(prx + 90) * psy;
|
pc = sin * psx;
|
||||||
|
pd = cos * psy;
|
||||||
float rx = rotation + shearX - prx;
|
float rx = rotation + shearX - prx;
|
||||||
float ry = rotation + shearY - prx + 90;
|
float ry = rotation + shearY - prx + 90;
|
||||||
float la = cosDeg(rx) * scaleX;
|
float la = cosDeg(rx) * scaleX;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user