crashcat docs
    Preparing search index...

    Type Alias Contact

    contact between two shapes

    type Contact = {
        bodyIdA: number;
        bodyIdB: number;
        bodyIndexA: number;
        bodyIndexB: number;
        contactIndex: number;
        contactNormal: Vec3;
        contactPoints: CachedContactPoint[];
        edges: [ContactEdge, ContactEdge];
        flags: number;
        numContactPoints: number;
        processedThisFrame: boolean;
        subShapeIdA: number;
        subShapeIdB: number;
    }
    Index

    Properties

    bodyIdA: number

    body A ID (always <= bodyIdB for consistent ordering)

    bodyIdB: number

    body B ID (always >= bodyIdA for consistent ordering)

    bodyIndexA: number

    body A index

    bodyIndexB: number

    body B index

    contactIndex: number

    contact index (index in contacts.contacts when active, -1 when freed)

    contactNormal: Vec3

    contact normal in body B's local space

    contactPoints: CachedContactPoint[]

    contact points (max 4 for stable manifold)

    two edges for intrusive doubly-linked list: edges[0] = edge in bodyA's contact list, edges[1] = edge in bodyB's contact list

    flags: number

    flags bitfield (@see CachedManifoldFlags)

    numContactPoints: number

    number of contact points (0-4)

    processedThisFrame: boolean

    whether this contact was processed this frame (for stale contact cleanup)

    subShapeIdA: number

    sub-shape A ID

    subShapeIdB: number

    sub-shape B ID