diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/PointAttachment.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/PointAttachment.java index 2e46885c9..a17c909d3 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/PointAttachment.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/PointAttachment.java @@ -87,9 +87,9 @@ public class PointAttachment extends Attachment { } public float computeWorldRotation (Bone bone) { - float x = cos(rotation), y = sin(rotation); - x = x * bone.getA() + y * bone.getB() + bone.getWorldX(); - y = x * bone.getC() + y * bone.getD() + bone.getWorldY(); - return (float)Math.atan2(y, x); + float cos = cosDeg(rotation), sin = sinDeg(rotation); + float x = cos * bone.getA() + sin * bone.getB(); + float y = cos * bone.getC() + sin * bone.getD(); + return (float)Math.atan2(y, x) * radDeg; } }