Class TriangleMeshNode Extends MeshNode

Public

Node represented by a triangle.

Public Methods

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

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

Checks if point is inside the node in graph space.

DecodeVariantPosition (pathNodeIndex, fractionAlongEdge)

The position of the path node during the search.

Deserializes the node data from a byte array.

GetPortalInGraphSpace (toNode, a, b, aIndex, bIndex)
GetVertex (i)

Get a vertex of this node.

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

Number of corner vertices that this node has.

Return a number identifying a vertex.

GetVertices (v0, v1, v2)

Returns all 3 vertices of this node in world space.

Returns all 3 vertices of this node in graph space.

Open (path, pathNodeIndex, gScore)

Open the node.

OpenAtPoint (path, pathNodeIndex, ..., gScore)

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

A random point on the surface of the node.

Serialized the node data to a byte array.

SharedEdge (other)

Returns the edge which is shared with other.

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

Public Static Methods

ClearNavmeshHolder (graphIndex, graph)
GetNavmeshHolder (graphIndex)
SetNavmeshHolder (graphIndex, graph)

Sets the internal navmesh holder for a given graph index.

Public Variables

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

InaccuratePathSearch

Legacy compatibility.

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

Inherited Public Members

AddPartialConnection (node, cost, ...)

Add a connection from this node to the specified node.

Area

Connected component that contains the node.

Public
ClearConnections (alsoReverse=true)

Remove all connections between this node and other nodes.

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

Adds a connection between two nodes.

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

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

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

Destroy ()

Destroys the node.

Destroyed
Public
DestroyedNodeIndex
Public Static
Disconnect (lhs, rhs)

Removes the connection between two nodes.

Flags

Holds various bitpacked variables.

Public
GetConnections (action, [data], [connectionFilter])

Calls the delegate with all connections from...

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

GetPortal (..., left, right, ...)

Graph

Graph which this node belongs to.

Public
GraphIndex

Graph which contains this node.

Public
InvalidGraphIndex
Public Static
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

Removes any connection from this node to the specified node.

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

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

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)

Closest point on the node when seen from above.

HierarchicalNodeIndex

Hierarchical Node that contains this node.

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

Some internal bookkeeping.

Internal
OpenSingleEdge (path, pathNodeIndex, other, sharedEdgeOnOtherNode, pos, gScore)
OpenSingleEdgeBurst (s1, s2, pos, pathID, pathNodeIndex, candidatePathNodeIndex, candidateNodeIndex, candidateG, pathNodes, heap, heuristicObjective)
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