Function generateConnections

  • Namespace

    PathfindingUtils

    Generates a connection array for a grid-based map with obstacles. The map has dimensions specified by the width and height parameters, and the obstacles are defined by an array of points representing their positions.

    Parameters

    • width: number

      The width of the grid map.

    • height: number

      The height of the grid map.

    • obstacles: Point[]

      An array of points representing the positions of obstacles.

    Returns Connection[]

    The connection array representing the grid-based map with obstacles.

Generated using TypeDoc