AutoMovie API
    Preparing search index...

    Fit declared support patches to a plane using their actual convex geometry. Keep authored horizontal goals and solve the actual patch height together with those goals, retaining unreachable endpoint/floor residuals. A shared root-drop budget is consumed across passes; cached bodies are never corrected. Non-planted patches preserve their authored clearance, clamped to the floor, so a root-drop correction cannot drive a swinging sole below it.

    type IResult = {
        floorErrors: Record<string, number>;
        goals: Record<string, IAutoMovieVector3>;
        residuals: Record<string, number>;
        rootDrop: number;
        targets: Record<string, IAutoMovieRigidTransform>;
    }
    Index
    floorErrors: Record<string, number>

    Signed patch-minimum minus assigned plane height in metres; negative means penetration.

    goals: Record<string, IAutoMovieVector3>

    Owned endpoint goals in world metres. Original X/Z are retained; Y is the explicit endpoint height or an updated plane-fitting request, not achieved pose.

    residuals: Record<string, number>

    Final chain residual norms in metres, keyed by endpoint bone; infeasible requests remain.

    rootDrop: number

    Accumulated nonnegative lowering in metres, consuming one shared budget across passes.

    targets: Record<string, IAutoMovieRigidTransform>

    New fitted world motor poses after the final bounded pass.