Struct NavMeshGraph.Location
Represents a triangle (index) and exact position within the NavMesh.
Use the RaycastNode function on the NavMesh to get a node for a pathfinding request.
Note that the Equals is overriden to only take triangleIndex into account.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.ToString()
Assembly: Assembly-CSharp.dll
Syntax
public struct Location : IEquatable<NavMeshGraph.Location>
Constructors
|
Improve this Doc
View Source
Location(Int32, float3, float3, Int32)
Declaration
public Location(int triangleIndex, float3 position, float3 normal, int flags)
Parameters
Type |
Name |
Description |
System.Int32 |
triangleIndex |
|
Unity.Mathematics.float3 |
position |
|
Unity.Mathematics.float3 |
normal |
|
System.Int32 |
flags |
|
Fields
|
Improve this Doc
View Source
flags
Declaration
public readonly int flags
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
normal
Declaration
Field Value
Type |
Description |
Unity.Mathematics.float3 |
|
|
Improve this Doc
View Source
position
The position within the triangle. For queries, this position is set to the exact location within the triangle.
For the heurisitc, the center of the triangle is used.
Declaration
Field Value
Type |
Description |
Unity.Mathematics.float3 |
|
|
Improve this Doc
View Source
triangleIndex
Declaration
public readonly int triangleIndex
Field Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
Equals(NavMeshGraph.Location)
Declaration
public bool Equals(NavMeshGraph.Location other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
Operators
|
Improve this Doc
View Source
Implicit(NavMeshGraph.Location to Int32)
Declaration
public static implicit operator int (NavMeshGraph.Location location)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Implements
System.IEquatable<T>
Extension Methods
AStar.FindPath<TGraph, TNode, TSeg, TProc>(ref TGraph, TNode, TNode, AStarSettings, ref Memory<TNode, TSeg>, ref TProc, ref NativeList<TSeg>)
AStarStops.FindPathStops<TGraph, TNode, TSeg, TMod>(ref TGraph, NativeSlice<TNode>, AStarSettings, ref Memory<TNode, TSeg>, ref TMod, ref NativeList<TSeg>, ref NativeList<Int32>)
AStarOption.FindOption<TGraph, TNode, TSeg, TProc>(ref TGraph, NativeSlice<TNode>, NativeSlice<OffsetInfo>, AStarSettings, ref Memory<TNode, TSeg>, ref TProc, ref NativeList<TSeg>)
AStarOption.FindOptionRemap<TGraph, TNode, TSeg, TProc>(ref TGraph, NativeSlice<Int32>, NativeSlice<TNode>, NativeSlice<OffsetInfo>, AStarSettings, ref Memory<TNode, TSeg>, ref TProc, ref NativeList<TSeg>)
AStarOption.EvalOptionRemap<TGraph, TNode, TSeg, TProc>(ref TGraph, NativeSlice<Int32>, NativeSlice<TNode>, NativeSlice<OffsetInfo>, AStarSettings, ref Memory<TNode, TSeg>, ref TProc)
AStarCheapestOption.FindCheapestTarget<TGraph, TNode, TSeg, TProc>(ref TGraph, NativeSlice<TNode>, NativeSlice<OffsetInfo>, AStarSettings, ref Memory<TNode, TSeg>, ref TProc, ref NativeList<TSeg>, ref NativeList<TSeg>, ref NativeList<TSeg>)