Documentation
    Preparing search index...

    Interface TwoBoneIKSolution

    The pose produced by solveTwoBoneIK.

    joint and end are stable object references that the solver writes into — the vectors are mutable, the fields are not reassigned — so a caller can hold one solution and reuse it every frame.

    interface TwoBoneIKSolution {
        end: Vector3;
        joint: Vector3;
        reachable: boolean;
    }
    Index
    end: Vector3

    World position of the chain tip after solving. Equals the target when reachable.

    joint: Vector3

    World position of the middle joint (elbow, knee), on the pole side.

    reachable: boolean

    false when the target lay outside the chain's annulus and the pose was clamped — end is then the closest the tip can get, not the target.