[csharp] Fix IkConstraint fix port. 73cb6299de

This commit is contained in:
pharan 2017-06-10 06:50:29 +08:00
parent 714f010006
commit 354ef48a64

View File

@ -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;