Переглянути джерело

[csharp] Fixed world scale.

https://github.com/EsotericSoftware/spine-runtimes/commit/6cc91d579cb0e0f1b51fd9c3fbe748ad066d32d8
John 9 роки тому
батько
коміт
6616ec1808
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      spine-csharp/src/Bone.cs

+ 2 - 2
spine-csharp/src/Bone.cs

@@ -72,8 +72,8 @@ namespace Spine {
 		public float WorldSignY { get { return worldSignY; } }
 		public float WorldRotationX { get { return MathUtils.Atan2(c, a) * MathUtils.radDeg; } }
 		public float WorldRotationY { get { return MathUtils.Atan2(d, b) * MathUtils.radDeg; } }
-		public float WorldScaleX { get { return (float)Math.Sqrt(a * a + b * b) * worldSignX; } }
-		public float WorldScaleY { get { return (float)Math.Sqrt(c * c + d * d) * worldSignY; } }
+		public float WorldScaleX { get { return (float)Math.Sqrt(a * a + c * c) * worldSignX; } }
+		public float WorldScaleY { get { return (float)Math.Sqrt(b * b + d * d) * worldSignY; } }
 
 		/// <param name="parent">May be null.</param>
 		public Bone (BoneData data, Skeleton skeleton, Bone parent) {