mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-10 17:18:44 +08:00
[libgdx] One bone IK, added fall through comment.
This commit is contained in:
parent
d94ebeae7a
commit
c9d871ab63
@ -189,6 +189,7 @@ public class IkConstraint implements Updatable {
|
||||
float ps = Math.abs(pa * pd - pb * pc) / (pa * pa + pc * pc);
|
||||
pb = -pc * ps;
|
||||
pd = pa * ps;
|
||||
// Fall through.
|
||||
default:
|
||||
float x = targetX - p.worldX, y = targetY - p.worldY;
|
||||
float d = pa * pd - pb * pc;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user