reckfellENGINE

NavigationPathQueryResult2D

Represents the result of a 2D pathfinding query.

On this page
class NavigationPathQueryResult2DReckfellSharpInherits RefCounted

Represents the result of a 2D pathfinding query.

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

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

NavigationPathQueryResult2DConstructor
# NavigationPathQueryResult2D
C#
public NavigationPathQueryResult2D();

Properties5

PathProperty
# Path
C#
public Vector2[] Path { get; set; }

Points from the last executed query. May be empty, partial or have projected endpoints. Existing points do not prove connection between the requested start and target; check both ends.

PathLengthProperty
# PathLength
C#
public float PathLength { get; set; }

Length of the last query result. In SDK 1.0.0 Reset() retains this value while clearing arrays. Do not treat retained length as evidence of a path; set PathLength = 0 when manually clearing results.

PathOwnerIdsProperty
# PathOwnerIds
C#
public long[] PathOwnerIds { get; set; }

Object owner IDs for points when Owners is enabled. A server-created region without an owner can return zero. Validate the ID before attempting to resolve an Entity.

PathRidsProperty
# PathRids
C#
public Reckfell.Collections.Array<Rid> PathRids { get; set; }

Owner RIDs for corresponding points when Rids is enabled. A region entry is its navigation-region RID, not an Entity ID. Do not use a RID after its owner is freed.

PathTypesProperty
# PathTypes
C#
public int[] PathTypes { get; set; }

Owner types for corresponding path points when Types is enabled. Metadata rather than movement instructions or automatic link traversal.

Methods14

GetPathVector2[]
# GetPath
C#
public Vector2[] GetPath();
Returns Vector2[]
GetPathLengthfloat
# GetPathLength
C#
public float GetPathLength();
Returns float
GetPathOwnerIdslong[]
# GetPathOwnerIds
C#
public long[] GetPathOwnerIds();
Returns long[]
GetPathRidsReckfell.Collections.Array<Rid>
# GetPathRids
C#
public Reckfell.Collections.Array<Rid> GetPathRids();
Returns Reckfell.Collections.Array<Rid>
GetPathTypesint[]
# GetPathTypes
C#
public int[] GetPathTypes();
Returns int[]
Resetvoid
# Reset
C#
public void Reset();

Clears Path, PathTypes, PathRids and PathOwnerIds. The installed SDK 1.0.0 retains PathLength; reset it separately if needed. Does not clear options in a separate parameters object.

SetPath2 overloads
# SetPath · 1/2
C#
public void SetPath(Vector2[] path);
Parameters
NameTypeDefault
pathVector2[]—
# SetPath · 2/2
C#
public void SetPath(ReadOnlySpan<Vector2> path);
Parameters
NameTypeDefault
pathReadOnlySpan<Vector2>—
SetPathLengthvoid
# SetPathLength
C#
public void SetPathLength(float length);
Parameters
NameTypeDefault
lengthfloat—
SetPathOwnerIds2 overloads
# SetPathOwnerIds · 1/2
C#
public void SetPathOwnerIds(long[] pathOwnerIds);
Parameters
NameTypeDefault
pathOwnerIdslong[]—
# SetPathOwnerIds · 2/2
C#
public void SetPathOwnerIds(ReadOnlySpan<long> pathOwnerIds);
Parameters
NameTypeDefault
pathOwnerIdsReadOnlySpan<long>—
SetPathRidsvoid
# SetPathRids
C#
public void SetPathRids(Reckfell.Collections.Array<Rid> pathRids);
Parameters
NameTypeDefault
pathRidsReckfell.Collections.Array<Rid>—
SetPathTypes2 overloads
# SetPathTypes · 1/2
C#
public void SetPathTypes(int[] pathTypes);
Parameters
NameTypeDefault
pathTypesint[]—
# SetPathTypes · 2/2
C#
public void SetPathTypes(ReadOnlySpan<int> pathTypes);
Parameters
NameTypeDefault
pathTypesReadOnlySpan<int>—

NavigationPathQueryResult2D.PathSegmentType

ValueDescription
Region = 0

This segment of the path goes through a region.

Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.