Class MeshNode Extends GraphNode

Public Abstract

Public Methods

AddConnection (node, cost)

Add a connection from this node to the specified node.

Public
AddConnection (node, cost, shapeEdge)

Add a connection from this node to the specified node.

Public
ClearConnections (alsoReverse)

Remove all connections from this node.

Public
ClosestPointOnNode (p)

Closest point on the surface of this node to the point p.

Public Abstract
ClosestPointOnNodeXZ (p)

Closest point on the surface of this node when seen from above.

Public Abstract
ContainsConnection (node)

Checks if this node has a connection to the specified node.

Public
ContainsPoint (point)

Checks if point is inside the node.

Public Abstract
ContainsPoint (point)

Checks if point is inside the node.

Public
ContainsPointInGraphSpace (point)

Checks if point is inside the node in graph space.

Public Abstract
DeserializeReferences (ctx)

Used to deserialize references to other nodes e.g connections.

Public
FloodFill (stack, region)
Public
GetConnections (action)

Calls the delegate with all connections from this node.

Public
GetGizmoHashCode ()

Hash code used for checking if the gizmos need to be updated.

Public
GetVertex (i)

Get a vertex of this node.

Public Abstract
GetVertexCount ()

Number of corner vertices that this node has.

Public Abstract
RemoveConnection (node)

Removes any connection from this node to the specified node.

Public
SerializeReferences (ctx)

Used to serialize references to other nodes e.g connections.

Public
UpdateRecursiveG (path, pathNode, handler)
Public

Public Variables

connections

All connections from this node.

Public

Inherited Public Members

Area

Connected component that contains the node.

Public
DeserializeNode (ctx)
Public
Destroyed
Public
Flags

Holds various bitpacked variables.

Public
GetPortal (other, left, right, backwards)

Add a portal from this node to the specified node.

Public
Graph

Graph which this node belongs to.

Public
GraphIndex

Graph which contains this node.

Public
MaxAreaIndex
Public
MaxGraphIndex

Max number of graphs-1.

Public
NodeIndex

Internal unique index.

Public
Penalty

Penalty cost for walking on this node.

Public
position

Position of the node in world space.

Public
RandomPointOnSurface ()

A random point on the surface of the node.

Public
RecalculateConnectionCosts ()

Recalculates all connection costs from this node.

Public
SerializeNode (ctx)
Public
SurfaceArea ()

The surface area of the node in square world units.

Public
Tag

Node tag.

Public
Walkable

True if the node is traversable.

Public

Private/Protected Members

Destroy ()

Destroys the node.

Package
flags

Bitpacked field holding several pieces of data.

Protected
MeshNode (astar)
Protected