mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-12 01:58:45 +08:00
Fixed world scale.
This commit is contained in:
parent
c5d3d84f71
commit
6cc91d579c
@ -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 () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user