• Builds a Solo NavMesh from the given positions and indices.

    Parameters

    • positions: ArrayLike<number>

      a flat array of positions

    • indices: ArrayLike<number>

      a flat array of indices

    • Optional navMeshGeneratorConfig: Partial<{
          borderSize: number;
          bounds?: [bbMin: Vector3Tuple, bbMax: Vector3Tuple];
          buildBvTree?: boolean;
          ch: number;
          cs: number;
          detailSampleDist: number;
          detailSampleMaxError: number;
          maxEdgeLen: number;
          maxSimplificationError: number;
          maxVertsPerPoly: number;
          mergeRegionArea: number;
          minRegionArea: number;
          offMeshConnections?: OffMeshConnectionParams[];
          walkableClimb: number;
          walkableHeight: number;
          walkableRadius: number;
          walkableSlopeAngle: number;
      }>

      optional configuration for the NavMesh generator

    • Optional keepIntermediates: boolean

      if true intermediates will be returned

    Returns GenerateSoloNavMeshResult