Logo

Getting started

  • Quickstart
    • Installation
    • Key concepts
    • How a query is built
    • How to request queries
    • Testing and debugging the query

Class reference

  • All classes
  • Variant types
    • ContextInGroup2D
      • Description
      • Properties
      • Property Descriptions
    • ContextInGroup3D
      • Description
      • Properties
      • Property Descriptions
    • ContextQuerier2D
    • ContextQuerier3D
    • ContextQueryItems2D
      • Description
      • Properties
      • Property Descriptions
    • ContextQueryItems3D
      • Description
      • Properties
      • Property Descriptions
    • ContextTargetArray2D
      • Description
      • Properties
      • Property Descriptions
    • ContextTargetArray3D
      • Description
      • Properties
      • Property Descriptions
    • ContextTargetNode2D
      • Description
      • Properties
      • Property Descriptions
    • ContextTargetNode3D
      • Description
      • Properties
      • Property Descriptions
    • EnvironmentQuery2D
      • Description
      • Properties
      • Methods
      • Signals
      • Property Descriptions
      • Method Descriptions
    • EnvironmentQuery3D
      • Description
      • Properties
      • Methods
      • Signals
      • Property Descriptions
      • Method Descriptions
    • GeneratorCircleShape2D
      • Description
      • Properties
      • Property Descriptions
    • GeneratorCircleShape3D
      • Description
      • Properties
      • Property Descriptions
    • GeneratorComposite2D
    • GeneratorComposite3D
    • GeneratorGridShape2D
      • Description
      • Properties
      • Property Descriptions
    • GeneratorGridShape3D
      • Description
      • Properties
      • Property Descriptions
    • GeneratorInArray2D
      • Properties
      • Property Descriptions
    • GeneratorInArray3D
      • Properties
      • Property Descriptions
    • GeneratorInGroup2D
      • Description
      • Properties
      • Property Descriptions
    • GeneratorInGroup3D
      • Description
      • Properties
      • Property Descriptions
    • GEQODebug
      • Description
      • Methods
      • Method Descriptions
    • GEQODebugDraw2D
      • Description
    • GEQODebugSpheres2D
      • Description
    • GEQODebugSpheres3D
      • Description
    • GEQOEnums
      • Enumerations
    • QueryContext2D
      • Description
      • Methods
      • Method Descriptions
    • QueryContext3D
      • Description
      • Methods
      • Method Descriptions
    • QueryGenerator2D
      • Description
      • Properties
      • Methods
      • Signals
      • Enumerations
      • Property Descriptions
      • Method Descriptions
    • QueryGenerator3D
      • Description
      • Properties
      • Methods
      • Signals
      • Enumerations
      • Property Descriptions
      • Method Descriptions
    • QueryInstance2D
      • Properties
      • Methods
      • Property Descriptions
      • Method Descriptions
    • QueryInstance3D
      • Properties
      • Methods
      • Property Descriptions
      • Method Descriptions
    • QueryItem2D
      • Description
      • Properties
      • Methods
      • Property Descriptions
      • Method Descriptions
    • QueryItem3D
      • Description
      • Properties
      • Methods
      • Property Descriptions
      • Method Descriptions
    • QueryResult2D
      • Description
      • Methods
      • Method Descriptions
    • QueryResult3D
      • Description
      • Methods
      • Method Descriptions
    • QueryTest2D
      • Description
      • Properties
      • Methods
      • Signals
      • Property Descriptions
      • Method Descriptions
    • QueryTest3D
      • Description
      • Properties
      • Methods
      • Signals
      • Property Descriptions
      • Method Descriptions
    • TestDistanceTo2D
      • Description
      • Properties
      • Property Descriptions
    • TestDistanceTo3D
      • Description
      • Properties
      • Property Descriptions
    • TestDotProduct2D
      • Description
      • Properties
      • Methods
      • Enumerations
      • Property Descriptions
      • Method Descriptions
    • TestDotProduct3D
      • Description
      • Properties
      • Methods
      • Enumerations
      • Property Descriptions
      • Method Descriptions
    • TestIntersectsArea2D
      • Properties
      • Property Descriptions
    • TestIntersectsArea3D
      • Description
      • Properties
      • Property Descriptions
    • TestPathFindTo3D
      • Properties
      • Property Descriptions
    • TestRaycastTo2D
      • Description
      • Properties
      • Property Descriptions
    • TestRaycastTo3D
      • Description
      • Properties
      • Property Descriptions
Godot Environment Query Orchestrator
  • NavigationPathQueryResult2D
  • Edit on GitHub

NavigationPathQueryResult2D

Experimental: This class may be changed or removed in future versions.

Inherits: RefCounted < Object

Represents the result of a 2D pathfinding query.

Description

This class stores the result of a 2D navigation path query from the NavigationServer2D.

Tutorials

  • Using NavigationPathQueryObjects

Properties

PackedVector2Array

path

PackedVector2Array()

float

path_length

0.0

PackedInt64Array

path_owner_ids

PackedInt64Array()

Array[RID]

path_rids

[]

PackedInt32Array

path_types

PackedInt32Array()

Methods

void

reset()


Enumerations

enum PathSegmentType: 🔗

PathSegmentType PATH_SEGMENT_TYPE_REGION = 0

This segment of the path goes through a region.

PathSegmentType PATH_SEGMENT_TYPE_LINK = 1

This segment of the path goes through a link.


Property Descriptions

PackedVector2Array path = PackedVector2Array() 🔗

  • void set_path(value: PackedVector2Array)

  • PackedVector2Array get_path()

The resulting path array from the navigation query. All path array positions are in global coordinates. Without customized query parameters this is the same path as returned by NavigationServer2D.map_get_path().

Note: The returned array is copied and any changes to it will not update the original property value. See PackedVector2Array for more details.


float path_length = 0.0 🔗

  • void set_path_length(value: float)

  • float get_path_length()

Returns the length of the path.


PackedInt64Array path_owner_ids = PackedInt64Array() 🔗

  • void set_path_owner_ids(value: PackedInt64Array)

  • PackedInt64Array get_path_owner_ids()

The ObjectIDs of the Objects which manage the regions and links each point of the path goes through.

Note: The returned array is copied and any changes to it will not update the original property value. See PackedInt64Array for more details.


Array[RID] path_rids = [] 🔗

  • void set_path_rids(value: Array[RID])

  • Array[RID] get_path_rids()

The RIDs of the regions and links that each point of the path goes through.


PackedInt32Array path_types = PackedInt32Array() 🔗

  • void set_path_types(value: PackedInt32Array)

  • PackedInt32Array get_path_types()

The type of navigation primitive (region or link) that each point of the path goes through.

Note: The returned array is copied and any changes to it will not update the original property value. See PackedInt32Array for more details.


Method Descriptions

void reset() 🔗

Reset the result object to its initial state. This is useful to reuse the object across multiple queries.


© Copyright 2026 Francisco Marrero.

Built with Sphinx using a theme provided by Read the Docs.