Struct PlatformerGraph.Segment
Represents a segment of a path on the Platformer Graph. The full directed path can be traversed by traversing each edge's Enter to it's Exit position.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
Namespace: AnyPath.Graphs
Assembly: Assembly-CSharp.dll
Syntax
public struct Segment
Constructors
| Improve this Doc View SourceSegment(float2, float2, Int32)
Declaration
public Segment(float2 enter, float2 exit, int flags)
Parameters
Type | Name | Description |
---|---|---|
Unity.Mathematics.float2 | enter | |
Unity.Mathematics.float2 | exit | |
System.Int32 | flags |
Properties
| Improve this Doc View SourceEnter
Enter position of this segment. This is the previous segment's exit position
Declaration
public float2 Enter { readonly get; set; }
Property Value
Type | Description |
---|---|
Unity.Mathematics.float2 |
Exit
Exit position of this segment. This is the enter position of the next segment.
Declaration
public float2 Exit { readonly get; set; }
Property Value
Type | Description |
---|---|
Unity.Mathematics.float2 |
Flags
The flags of the edge this path segment is based upon.
Declaration
public int Flags { readonly get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |