navcat docs
    Preparing search index...

    Function findNodePath

    • Find a path between two nodes.

      If the end node cannot be reached through the navigation graph, the last node in the path will be the nearest the end node.

      The start and end positions are used to calculate traversal costs. (The y-values impact the result.)

      Parameters

      • navMesh: NavMesh
      • startNodeRef: number

        The reference ID of the starting node.

      • endNodeRef: number

        The reference ID of the ending node.

      • startPosition: Vec3

        The starting position in world space.

      • endPosition: Vec3

        The ending position in world space.

      • filter: QueryFilter

        The query filter.

      Returns FindNodePathResult

      The result of the pathfinding operation.