Class GridNodeBase Extends GraphNode
Base class for GridNode and LevelGridNode.
Public Methods
Add a connection from this node to the specified node.
Remove all connections between this node and other nodes.
Same as ClearConnections, but does not clear grid connections, only custom ones (e.g added by AddConnection or a NodeLink component)
Closest point on the surface of this node to the point p.
True if this node contains a connection to the given node.
Checks if point is inside the node when seen from above.
Checks if point is inside the node in graph space.
Used to deserialize references to other nodes e.g connections.
Calls the delegate with all connections from or to this node, and passes a custom data value to the delegate.
Hash code used for checking if the gizmos need to be updated.
Adjacent grid node in the specified direction.
True if the node has a connection to an adjecent node in the specified direction.
Transforms a world space point to a normalized point on this node's surface.
Open the node.
Open the node at a specific point.
Projects the given point onto the plane of this node's surface.
A random point on the surface of the node.
Removes any connection from this node to the specified node.
Disables all grid connections from this node.
Used to serialize references to other nodes e.g connections.
The surface area of the node in square world units.
Transforms a normalized point on this node's surface to a world space point.
Public Static Methods
Converts from a delta (dx, dz) to a neighbour direction.
The connection opposite the given one.
Public Variables
The X and Z coordinates of the node in the grid.
True if this node has any grid connections.
True if the node has grid connections to all its 4 axis-aligned neighbours.
True if the node has grid connections to all its 8 neighbours.
The index of the node in the grid.
Temporary variable used internally when updating the graph.
Stores walkability before erosion is applied.
X coordinate of the node in the grid.
Z coordinate of the node in the grid.
Custon non-grid connections from this node.
Public Static Variables
Inherited Public Members
Connected component that contains the node.
Adds a connection between two nodes.
Checks if point is inside the node when seen from above.
The position of the path node during the search.
Deserializes the node data from a byte array.
Destroys the node.
Removes the connection between two nodes.
Holds various bitpacked variables.
Calls the delegate with all connections from this node.
Add a portal from this node to the specified node.
Graph which this node belongs to.
Graph which contains this node.
Max number of graphs-1.
Max number of tags - 1.
Internal unique index.
Penalty cost for walking on this node.
Serialized the node data to a byte array.
Inform the system that the node's connectivity has changed.
Node tag.
True if the node is traversable.
Position of the node in world space.
Private/Protected Members
Hierarchical Node that contains this node.
Some internal bookkeeping.
How many path node variants should be created for each node.
Temporary flag for internal purposes.
Temporary flag for internal purposes.
Bitpacked field holding several pieces of data.
Bitfield containing the x and z coordinates of the node as well as the layer (for layered grid graphs).
Converts from dx + 3*dz to a neighbour direction.