interface CollisionManager {
    checkCollisionAsync(
        theMeshIdList1: string,
        theMeshIdList2: string,
    ): Promise<boolean>;
    clearCollisionContour(): void;
    setCollisionContourColor(theColor: string): void;
}

Methods

  • Check collision between two InteractiveMesh objects asynchronously.

    Parameters

    • theMeshIdList1: string

      first mesh ids to compute collision

    • theMeshIdList2: string

      second mesh ids to compute collision

    Returns Promise<boolean>

    Promise that will resolve to true if collision happens.

  • Clear the custom colors of all the recently colorized meshes.

    Returns void

  • Set the collision contour color.

    Parameters

    • theColor: string

      contour color in Hex string format.

    Returns void