Taos API Reference
    Preparing search index...

    Type Alias AnimNodeDoc

    AnimNodeDoc:
        | { node: "clip"; clip: string; speed?: number; loop?: boolean }
        | {
            node: "blend1d";
            param: string;
            samples: { position: number; child: AnimNodeDoc }[];
        }
        | {
            node: "blend2d";
            paramX: string;
            paramY: string;
            samples: { x: number; y: number; child: AnimNodeDoc }[];
        }
        | {
            node: "additive";
            base: AnimNodeDoc;
            add: AnimNodeDoc;
            weightParam?: string;
            weight?: number;
            refClip?: string;
            refTime?: number;
        }
        | {
            node: "stateMachine";
            initial?: string;
            states: { name: string; child: AnimNodeDoc }[];
            transitions?: AnimTransitionDoc[];
        }

    A node in an AnimatorDoc blend graph. clip plays one animation; blend1d/blend2d blend children by a parameter; additive layers an offset; stateMachine cross-fades between named child states.

    Type Declaration

    • { node: "clip"; clip: string; speed?: number; loop?: boolean }
    • {
          node: "blend1d";
          param: string;
          samples: { position: number; child: AnimNodeDoc }[];
      }
    • {
          node: "blend2d";
          paramX: string;
          paramY: string;
          samples: { x: number; y: number; child: AnimNodeDoc }[];
      }
    • {
          node: "additive";
          base: AnimNodeDoc;
          add: AnimNodeDoc;
          weightParam?: string;
          weight?: number;
          refClip?: string;
          refTime?: number;
      }
      • node: "additive"
      • base: AnimNodeDoc
      • add: AnimNodeDoc
      • OptionalweightParam?: string

        Parameter driving the additive weight (0..1); or a constant weight.

      • Optionalweight?: number
      • OptionalrefClip?: string

        Reference (neutral) pose the additive is measured against.

      • OptionalrefTime?: number
    • {
          node: "stateMachine";
          initial?: string;
          states: { name: string; child: AnimNodeDoc }[];
          transitions?: AnimTransitionDoc[];
      }