AutoMovie API
    Preparing search index...

    Plan the footsteps of a walk. The plan.

    interface IPlan {
        duration: number;
        events: { name: string; seconds: number }[];
        inPlace?: boolean;
        lastLanding: Readonly<Record<AutoMovieHumanSide, number>>;
        stances: { from: number; side: "left" | "right"; to: number }[];
        amount(seconds: number): number;
        foot(
            side: "left" | "right",
            seconds: number,
        ): IAutoMovieMotionHumanWalkFoot.IScheduled;
        phase(seconds: number): number;
        root(seconds: number): IAutoMovieVector3;
        yaw(seconds: number): number;
    }
    Index
    duration: number

    Seconds.

    events: { name: string; seconds: number }[]

    Named instants in seconds.

    Type Declaration

    • name: string

      Event label used to synchronise this step with other actions.

    • seconds: number

      Event instant in action-local seconds.

    inPlace?: boolean

    Whether alternating flat footprints turn the body without travel.

    lastLanding: Readonly<Record<AutoMovieHumanSide, number>>

    Each foot's final scheduled heel strike, or negative infinity when it never swings.

    stances: { from: number; side: "left" | "right"; to: number }[]

    Stance spans per foot, seconds.

    Type Declaration

    • from: number

      Stance beginning in action-local seconds.

    • side: "left" | "right"

      Foot kept planted throughout this stance interval.

    • to: number

      Stance ending in action-local seconds.