Simplified noRotationOrReflection.

This commit is contained in:
NathanSweet 2016-10-16 12:48:32 +02:00
parent 3a3f0cc2f4
commit 92f91bae58

View File

@ -162,10 +162,11 @@ public class Bone implements Updatable {
psy = (float)Math.sqrt(pb * pb + pd * pd);
prx = 90 - atan2(pd, pb) * radDeg;
}
pa = cosDeg(prx) * psx;
pb = cosDeg(prx + 90) * psy;
pc = sinDeg(prx) * psx;
pd = sinDeg(prx + 90) * psy;
float cos = cosDeg(prx), sin = sinDeg(prx);
pa = cos * psx;
pb = -sin * psy;
pc = sin * psx;
pd = cos * psy;
float rx = rotation + shearX - prx;
float ry = rotation + shearY - prx + 90;
float la = cosDeg(rx) * scaleX;