AutoMovie API
    Preparing search index...

    Two discs, or a disc and an obstacle, observed overlapping at two consecutive trajectory knots.

    interface IContact {
        agent: number;
        depth: number;
        other:
            | { index: number; kind: "agent" }
            | { index: number; kind: "obstacle" };
        seconds: number;
    }
    Index
    agent: number

    The first agent's index.

    depth: number

    How deep they overlapped there, metres.

    other: { index: number; kind: "agent" } | { index: number; kind: "obstacle" }

    What it overlapped: another agent, or an obstacle, by index.

    Type Declaration

    • { index: number; kind: "agent" }
      • index: number

        Other agent's zero-based index in the original input order.

      • kind: "agent"

        Selects the input agents array.

    • { index: number; kind: "obstacle" }
      • index: number

        Obstacle's zero-based index in the original input order.

      • kind: "obstacle"

        Selects the input obstacles array.

    seconds: number

    Film time of the first observed overlapping knot, rather than an interpolated exact collision onset.