AutoMovie API
    Preparing search index...

    What a stroke evaluates.

    interface IInput {
        contact: number;
        fixed?: number | null;
        gap?: (end: IAutoMovieVector3, seconds: number) => number;
        origin: IAutoMovieVector3;
        rechamber?: IAutoMovieVector3;
        recoil: number;
        scan: { from: number; step: number; to: number };
        tracker?: ITracker;
        units: readonly IUnit[];
        back(): IAutoMovieVector3;
    }
    Index
    contact: number

    The planned contact, film seconds: the free recoil starts here when nothing is met.

    fixed?: number | null

    The contact second the performance resolved jointly with every other weapon (resolveAutoMovieContactEvents), or null when it resolved that the weapon meets nothing; the stroke's own scan runs only when absent.

    gap?: (end: IAutoMovieVector3, seconds: number) => number

    The weapon's signed gap to the struck body at a second, given the end joint's position then; positive while apart. Absent when nothing can be met (a strike at the air).

    The end joint at the launch, world metres.

    rechamber?: IAutoMovieVector3

    A point the recoil passes on its way back (a kick's re-chamber, which clears the struck body before the foot comes down); a straight return when absent.

    recoil: number

    The recoil's duration, seconds.

    scan: { from: number; step: number; to: number }

    The contact scan's span and step, film seconds.

    Type Declaration

    • from: number

      Beginning of the contact scan in film seconds.

    • step: number

      Positive sample spacing of the contact scan, seconds.

    • to: number

      End of the contact scan in film seconds.

    tracker?: ITracker

    The target's corrections, when the strike tracks one.

    units: readonly IUnit[]

    The delivery's units.