Class TriangleMeshNode Extends MeshNode

Public

Node represented by a triangle.

Public Methods

ClosestPointOnNode (p)

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

Public
ClosestPointOnNodeXZ (p)

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

Public
ContainsPoint (p)

Checks if point is inside the node when seen from above.

Public
ContainsPoint (p, movementPlane)

Checks if point is inside the node when seen from above, as defined by the movement plane.

Public
ContainsPointInGraphSpace (p)

Checks if point is inside the node in graph space.

Public
DecodeVariantPosition (pathNodeIndex, fractionAlongEdge)

The position of the path node during the search.

Public
DeserializeNode (ctx)

Deserializes the node data from a byte array.

Public
GetPortal (other, left, right)

Add a portal from this node to the specified node.

Public
GetPortal (toNode, left, right, aIndex, bIndex)
Public
GetPortalInGraphSpace (toNode, a, b, aIndex, bIndex)
Public
GetVertex (i)

Get a vertex of this node.

Public
GetVertexArrayIndex (i)

Return a number specifying an index in the source vertex array.

Public
GetVertexCount ()

Number of corner vertices that this node has.

Public
GetVertexInGraphSpace (i)
Public
GetVertexIndex (i)

Return a number identifying a vertex.

Public
GetVertices (v0, v1, v2)

Returns all 3 vertices of this node in world space.

Public
GetVerticesInGraphSpace (v0, v1, v2)

Returns all 3 vertices of this node in graph space.

Public
Open (path, pathNodeIndex, gScore)

Open the node.

Public
OpenAtPoint (path, pathNodeIndex, position, gScore)

Open the node at a specific point.

Public
ProjectOnSurface (point)

Projects the given point onto the plane of this node's surface.

Public
RandomPointOnSurface ()

A random point on the surface of the node.

Public
SerializeNode (ctx)

Serialized the node data to a byte array.

Public
SharedEdge (other)

Returns the edge which is shared with other.

Public
SurfaceArea ()
Public
TriangleMeshNode ()
Public
TriangleMeshNode (astar)
Public
UpdatePositionFromVertices ()

Set the position of this node to the average of its 3 vertices.

Public

Public Static Methods

GetNavmeshHolder (graphIndex)
Public Static
SetNavmeshHolder (graphIndex, graph)

Sets the internal navmesh holder for a given graph index.

Public Static

Public Variables

InaccuratePathSearch

Legacy compatibility.

Public
TileIndex

Tile index in the recast or navmesh graph that this node is part of.

Public
v0

Internal vertex index for the first vertex.

Public
v1

Internal vertex index for the second vertex.

Public
v2

Internal vertex index for the third vertex.

Public

Public Static Variables

MarkerClosest
Public Static Readonly
MarkerDecode
Public Static Readonly
MarkerGetVertices
Public Static Readonly

Inherited Public Members

AddPartialConnection (node, cost, isOutgoing, isIncoming)

Add a connection from this node to the specified node.

Public
AddPartialConnection (node, cost, shapeEdgeInfo)

Add a connection from this node to the specified node.

Public
Area

Connected component that contains the node.

Public
ClearConnections (alsoReverse=true)

Remove all connections between this node and other nodes.

Public
Connect (lhs, rhs, cost, directionality=…)

Adds a connection between two nodes.

Public Static
ContainsOutgoingConnection (node)

True if this node contains a connection to the given node.

Public
ContainsPoint (point)

Checks if point is inside the node when seen from above.

Public
DeserializeReferences (ctx)

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

Public
Destroy ()

Destroys the node.

Public
Destroyed
Public
DestroyedNodeIndex
Public Static
Disconnect (lhs, rhs)

Removes the connection between two nodes.

Public Static
Flags

Holds various bitpacked variables.

Public
GetConnections (action, connectionFilter=…)

Calls the delegate with all connections from this node.

Public
GetConnections<T> (action, data, connectionFilter)

Calls the delegate with all connections from or to this node, and passes a custom data value to the delegate.

Public
GetConnectionsWithData<T> (node, data)
Public
GetGizmoHashCode ()

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

Public
Graph

Graph which this node belongs to.

Public
GraphIndex

Graph which contains this node.

Public
InvalidNodeIndex
Public Static
MaxGraphIndex

Max number of graphs-1.

Public Static
MaxHierarchicalNodeIndex
Public Static
MaxTagIndex

Max number of tags - 1.

Public Static
NodeIndex

Internal unique index.

Public
Penalty

Penalty cost for walking on this node.

Public
RemovePartialConnection (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
SetConnectivityDirty ()

Inform the system that the node's connectivity has changed.

Public
Tag

Node tag.

Public
Walkable

True if the node is traversable.

Public
connections

All connections from this node.

Public
position

Position of the node in world space.

Public

Private/Protected Members

CalculateBestEdgePosition (s1, s2, pos, closestPointAlongEdge, quantizedFractionAlongEdge, cost)
Private Static
ClosestPointOnNodeXZInGraphSpace (p)

Closest point on the node when seen from above.

Internal
HierarchicalNodeIndex

Hierarchical Node that contains this node.

Internal
InterpolateEdge (p1, p2, fractionAlongEdge, pos)
Private Static
IsHierarchicalNodeDirty

Some internal bookkeeping.

Internal
OpenAtPoint (path, pathNodeIndex, pos, edge, gScore)
Private
OpenSingleEdge (path, pathNodeIndex, other, sharedEdgeOnOtherNode, pos, gScore)
Private
OpenSingleEdgeBurst (s1, s2, pos, pathID, pathNodeIndex, candidatePathNodeIndex, candidateNodeIndex, candidateG, pathNodes, heap, heuristicObjective)
Private Static
PathNodeVariants

How many path node variants should be created for each node.

Internal
PathNodeVariants
Internal
TemporaryFlag1

Temporary flag for internal purposes.

Internal
TemporaryFlag2

Temporary flag for internal purposes.

Internal
_navmeshHolders

Holds INavmeshHolder references for all graph indices to be able to access them in a performant manner.

Private Static
flags

Bitpacked field holding several pieces of data.

Protected
lockObject

Used for synchronised access to the _navmeshHolders array.

Private Static Readonly