Function getNavMeshPositionsAndIndices

  • Gets the positions and indices of the nav mesh.

    Parameters

    • navMesh: NavMesh

      the nav mesh

    • Optional flags: number

      poly flags to filter by, defaults to undefined to include all polys

    Returns [positions: number[], indices: number[]]

    the positions and indices of the nav mesh