0 votes
asked in FullBodyBipedIK by
Is there a boolean operator to show if limb-ik has achieved it's target?

1 Answer

0 votes
answered by (22.7k points)


LimbIK is an analytic solver, so it will always reach the target if the target is in range.

public LimbIK ik;

    private float limbLength;

    void Start () {

        float limbLength = (ik.solver.bone3.transform.position - ik.solver.bone2.transform.position).magnitude + (ik.solver.bone2.transform.position - ik.solver.bone1.transform.position).magnitude;
    void LateUpdate () {
        float targetDistance = (ik.solver.target.position - ik.solver.bone1.transform.position).magnitude;
        if (targetDistance > limbLength) {
            Debug.Log("Out of reach!");


Welcome to RootMotion Q&A, where you can ask questions and receive answers from the developer of Final IK and PuppetMaster and other members of the community.

Post as a guest, create an account or login via Facebook.

Please use the correct category when you post your questions.