mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 02:06:03 +08:00
Fixed IK bug.
This commit is contained in:
parent
1410f0e16f
commit
d2eac9ead8
@ -99,8 +99,8 @@ void spIkConstraint_apply2 (spBone* parent, spBone* child, float targetX, float
|
|||||||
psy = -psy;
|
psy = -psy;
|
||||||
s2 = -s2;
|
s2 = -s2;
|
||||||
}
|
}
|
||||||
u = psx - psy;
|
r = psx - psy;
|
||||||
u = u < 0 ? -u : u <= 0.0001f;
|
u = (r < 0 ? -r : r) <= 0.0001f;
|
||||||
if (!u && cy != 0) {
|
if (!u && cy != 0) {
|
||||||
cwx = parent->a * cx + parent->worldX;
|
cwx = parent->a * cx + parent->worldX;
|
||||||
cwy = parent->c * cx + parent->worldY;
|
cwy = parent->c * cx + parent->worldY;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user