AutoMovie API
    Preparing search index...

    Function fitHingedChainAt

    • A hinged two-bone chain posed at a prescribed swivel and bend branch, with no search, score or continuation: the closed-form articulation a caller that chooses its own swivel (an arm course) evaluates.

      The request is the fit's own (IFitChainToTargetProps); its near, strain, obstruction, reference and bend hint are not read, since the swivel is given. The hinge angle of the chosen branch comes from the span (hingedArmSwivel.branches, each branch stopped on the legal shell when the target lies outside the hinge's range), the root is aimed and turned by the swivel (hingedArmSwivel.pose), both joints are decomposed through the fit's own clinical domains and clamped by its ROM clamp, and a requested effector rotation is laid by the fit's own final orientation (orientChainEffector: the distal twist split and the end joint's range projection), the tail of the hinged fit for one candidate.

      Parameters

      • props: IAutoMovieFitChainToTargetProps

        The fit request: source pose, chain, rig tables and target; an optional effector rotation.

      • swivel: number

        The swivel, degrees, in the frame IAutoMovieSwivelNear and the fit's seeds use.

      • branch: number

        The bend branch, 0 or 1; clamped to the branches the target has.

      Returns IAutoMovieSeededChainFit & { shortfall: number } | null

      The posed chain, its seed and the shortfall from the target on the legal shell, metres; null when the chain is not a hinged two-bone chain or is degenerate.