From 354ef48a6463354af57868fccd29a32f2e3715ca Mon Sep 17 00:00:00 2001 From: pharan Date: Sat, 10 Jun 2017 06:50:29 +0800 Subject: [PATCH] [csharp] Fix IkConstraint fix port. https://github.com/EsotericSoftware/spine-runtimes/commit/73cb6299de2a66d587ecac8ae73a316f0f9da488 --- spine-csharp/src/IkConstraint.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-csharp/src/IkConstraint.cs b/spine-csharp/src/IkConstraint.cs index 25488aa15..900b84870 100644 --- a/spine-csharp/src/IkConstraint.cs +++ b/spine-csharp/src/IkConstraint.cs @@ -183,7 +183,7 @@ namespace Spine { float maxAngle = 0, maxX = l1 + a, maxDist = maxX * maxX, maxY = 0; c = -a * l1 / (aa - bb); if (c >= -1 && c <= 1) { - float angle = (float)Math.Acos(c); + c = (float)Math.Acos(c); x = a * (float)Math.Cos(c) + l1; y = b * (float)Math.Sin(c); d = x * x + y * y;