T_PurpleKingdomGames_Core_Pathfinding_GridNode2D - PurpleKingdomGames/CoreLibs GitHub Wiki
Stores a node on a grid with a location in world space, penalty, and whether it's passable
Namespace: PurpleKingdomGames.Core.Pathfinding
Assembly: PurpleKingdomGamesCore (in PurpleKingdomGamesCore.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public struct GridNode2D
The GridNode2D type exposes the following members.
Name | Description | |
---|---|---|
GridNode2D | Create a new grid node |
Name | Description | |
---|---|---|
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) | |
GetType | Gets the type of the current instance. (Inherited from Object.) | |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
Name | Description | |
---|---|---|
Position | Get the position of this node in world space |
Name | Description | |
---|---|---|
Passable | Whether or not a path can cross through this node | |
Penalty | The penalty for passing through this node |