Fixed world scale.

This commit is contained in:
NathanSweet 2016-08-18 11:01:57 +02:00
parent c5d3d84f71
commit 6cc91d579c

View File

@ -364,12 +364,12 @@ public class Bone implements Updatable {
/** Returns the magnitude (always positive) of the world scale X. */ /** Returns the magnitude (always positive) of the world scale X. */
public float getWorldScaleX () { public float getWorldScaleX () {
return (float)Math.sqrt(a * a + b * b); return (float)Math.sqrt(a * a + c * c);
} }
/** Returns the magnitude (always positive) of the world scale Y. */ /** Returns the magnitude (always positive) of the world scale Y. */
public float getWorldScaleY () { public float getWorldScaleY () {
return (float)Math.sqrt(c * c + d * d); return (float)Math.sqrt(b * b + d * d);
} }
public float worldToLocalRotationX () { public float worldToLocalRotationX () {