Class PlatformerSceneGraphEdge
Defines an edge between two vertices that is used to construct a Platformer graph.
Inheritance
Object
Component
Behaviour
MonoBehaviour
PlatformerSceneGraphEdge
Assembly: AnyPath.dll
public class PlatformerSceneGraphEdge : MonoBehaviour
Constructors
Declaration
public PlatformerSceneGraphEdge()
Fields
Endpoint node of this edge.
Declaration
public PlatformerSceneGraphNode a
Field Value
Endpoint node of this edge.
Declaration
public PlatformerSceneGraphNode b
Field Value
Is the edge directional? If true, traversal can only happen from A to B.
Declaration
Field Value
Declaration
public PlatformerSceneGraph editorOnlyParentGraphCached
Field Value
Extra cost associated with traversing this edge. A higher value discourages A* to use this edge in a path.
Declaration
[Min(0)]
public float enterCost
Field Value
Flags to associate with this edge. This can be used to filter raycast queries and to exclude edges from being considered.
Declaration
[HideInInspector]
public int flags
Field Value
Gets mapped to the edge's Id and can be used to map back to some other object (like a MonoBehaviour)
Declaration
Field Value
Methods
Declaration
public static IEnumerable<(Vector2, Vector2, Color)> GetColoredSegments(PlatformerSceneGraph graph, int flags, Vector2 posA, Vector2 posB)
Parameters
Returns
| Type |
Description |
| IEnumerable<(Vector2, Vector2, Color)> |
|
Declaration
public static void GetFlagColors(PlatformerSceneGraph graph, int flags, List<Color> colors)
Parameters
Extension Methods