Struct PlatformerGraph.Location
Represents a location on the platformer graph. A location can be retrieved by calling the Raycast or Closest functions on the PlatformerGraph. A location can be used as a start/stop/goal in a path request.
Implements
System.IEquatable<PlatformerGraph.Location>
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
Namespace: AnyPath.Graphs
Assembly: Assembly-CSharp.dll
Syntax
public struct Location : IEquatable<PlatformerGraph.Location>
Fields
| Improve this Doc View SourceedgeIndex
The index of the edge this location is at
Declaration
public readonly int edgeIndex
Field Value
Type | Description |
---|---|
System.Int32 |
flags
The flags of the edge this location is at
Declaration
public readonly int flags
Field Value
Type | Description |
---|---|
System.Int32 |
line
The line segment that describes the edge the location was sampled on. For directed edges, the direction of the edge is from A to B. For undirected edges, the edge also goes from B to A.
Declaration
public Line2D line
Field Value
Type | Description |
---|---|
Line2D |
Remarks
This value needs to be stored within the location to reconstruct the direction of travel for the first segment after the path has been found.
position
The exact position on the edge.
Declaration
public float2 position
Field Value
Type | Description |
---|---|
Unity.Mathematics.float2 |
Implements
System.IEquatable<T>