From 6cc91d579cb0e0f1b51fd9c3fbe748ad066d32d8 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Thu, 18 Aug 2016 11:01:57 +0200 Subject: [PATCH] Fixed world scale. --- .../spine-libgdx/src/com/esotericsoftware/spine/Bone.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Bone.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Bone.java index ebb94d344..f1f189343 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Bone.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Bone.java @@ -364,12 +364,12 @@ public class Bone implements Updatable { /** Returns the magnitude (always positive) of the world scale X. */ 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. */ public float getWorldScaleY () { - return (float)Math.sqrt(c * c + d * d); + return (float)Math.sqrt(b * b + d * d); } public float worldToLocalRotationX () {