fast-mesh-wasm
    Preparing search index...

    Interface Contact

    Two meshes within the margin of Scene.findContacts.

    interface Contact {
        a: MeshHandle;
        b: MeshHandle;
        distance: number;
        intersecting: boolean;
        trianglesA: Uint32Array;
        trianglesB: Uint32Array;
    }
    Index

    The mesh with the lower id.

    distance: number

    The distance between the surfaces; 0 when intersecting.

    intersecting: boolean

    Whether the meshes intersect or touch, decided exactly.

    trianglesA: Uint32Array

    Triangle slots of a within the margin of b, ascending.

    trianglesB: Uint32Array

    Triangle slots of b within the margin of a, ascending.