navcat docs
    Preparing search index...

    Function polygonsToNavMeshTilePolys

    • Builds NavMeshTile polys from given polygons. Use this method when you are creating a nav mesh tile from external polygon data.

      Use

      Parameters

      • polygons: ExternalPolygon[]

        polygons

      • vertices: number[]

        polygon vertices in world space

      • borderSize: number

        the border size. if above 0, portal edges will be marked

      • bounds: Box3

        the bounds of the polygon vertices

      Returns NavMeshTilePolys

      NavMeshTile polygons

      polyMeshToTilePolys if you need to convert a PolyMesh to NavMeshTile NavMeshPoly's.

      Computes poly neighbours used for internal polygon edge neighbour linking, and finds portal edges used for nav mesh tile stitching.