[libgdx] One bone IK, added fall through comment.

This commit is contained in:
NathanSweet 2019-12-18 18:19:26 +01:00
parent d94ebeae7a
commit c9d871ab63

View File

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