AutoMovie API
    Preparing search index...

    One body the weapons may meet.

    interface IBody {
        id: string;
        axis?(
            a: IAutoMovieVector3,
            b: IAutoMovieVector3,
            seconds: number,
            stops: IStops,
            taper?: readonly [number, number],
        ): number;
        carried?(
            a: IAutoMovieVector3,
            b: IAutoMovieVector3,
            seconds: number,
            stops: IStops,
            by: string,
        ): string | undefined;
        departure?(contact: IInitialContact): Departure | undefined;
        distance(point: IAutoMovieVector3, seconds: number, stops: IStops): number;
        speed?(grid: IAutoMovieResolveContactEvents.IGrid, stops: IStops): Speed;
    }
    Index
    id: string

    Its id, matching the owner of the weapons it carries.

    • The signed distance from a segment to the body's surface at a second, metres: the least signed distance over the segment's points, positive when the whole segment is outside. Required to meet capsule weapons. Given a taper, the segment is widened by a radius running linearly from its first end's to its other end's, and the distance is that tapered capsule's: the least over its points of the distance less the radius there.

      Parameters

      • a: IAutoMovieVector3

        The segment's first end, world metres.

      • b: IAutoMovieVector3

        Its other end, world metres.

      • seconds: number

        Seconds.

      • stops: IStops

        The stops so far.

      • Optionaltaper: readonly [number, number]

        The radii at a and at b, metres, for a tapered capsule weapon.

      Returns number

      Metres.

    • The body's own weapon carried by the part a striking weapon met, when that weapon is still on its free path at the second: the contact is mutual, so it stops with the striker. Absent, or undefined, when the part met carries none.

      Parameters

      • a: IAutoMovieVector3

        The striking weapon's centre, or its axis's first end, world metres.

      • b: IAutoMovieVector3

        The axis's other end; the centre again for a sphere.

      • seconds: number

        The contact second.

      • stops: IStops

        The stops before this contact.

      • by: string

        The id of the body carrying the striking weapon.

      Returns string | undefined

      The id of one of this body's weapons, or undefined.

    • Certify departure of an already-present pair only when its physical model establishes that phase. A clearance must have no new entry before it; no-entry covers only this search span. Undefined or absent keeps the original initial overlap/touch report. Opaque distance samples alone do not justify a certificate. The resolver validates clearance against at(seconds), and every other body keeps its original eligibility.

      Parameters

      Returns Departure | undefined