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); 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;