AutoMovie API
    Preparing search index...
    Attitude:
        | { kind: "velocity" }
        | {
            axis: IAutoMovieVector3;
            kind: "spin";
            rate: number;
            rotation?: IAutoMovieQuaternion;
        }
        | { kind: "fixed"; rotation?: IAutoMovieQuaternion }

    How the body turns in flight:

    • velocity: the body's +Z along the flight's velocity, an arrow or a javelin;
    • spin: turning at a constant rate about an axis of the body from its launch rotation, a thrown knife or an axe;
    • fixed: its launch rotation kept, a dropped cup.

    Type Declaration

    • { kind: "velocity" }
      • kind: "velocity"

        Nose along the velocity.

    • {
          axis: IAutoMovieVector3;
          kind: "spin";
          rate: number;
          rotation?: IAutoMovieQuaternion;
      }
      • axis: IAutoMovieVector3

        The spin axis in the body's own frame; non-zero.

      • kind: "spin"

        A constant spin.

      • rate: number

        Degrees per second about axis, right-handed.

      • Optionalrotation?: IAutoMovieQuaternion

        The body's rotation at launch, body to world; identity when absent.

    • { kind: "fixed"; rotation?: IAutoMovieQuaternion }
      • kind: "fixed"

        The launch rotation kept.

      • Optionalrotation?: IAutoMovieQuaternion

        The body's rotation at launch, body to world; identity when absent.