navcat docs
    Preparing search index...

    Function getClosestPointOnDetailEdges

    • Gets the closest point on detail mesh edges to a given point

      Parameters

      • outClosestPoint: Vec3

        Output parameter for the closest point

      • tile: NavMeshTile

        The tile containing the detail mesh

      • poly: NavMeshPoly

        The polygon

      • polyIndex: number
      • pos: Vec3

        The position to find closest point for

      • onlyBoundary: boolean

        If true, only consider boundary edges

      Returns number

      The squared distance to the closest point closest point