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 (point)

Checks if point is inside the node.

Public
ContainsPointInGraphSpace (point)

Checks if point is inside the node in graph space.

Public
DeserializeNode (ctx)
Public
GetPortal (toNode, left, right, backwards)
Public
GetPortal (toNode, left, right, backwards, 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
GetVertexIndex (i)

Return a number identifying a vertex.

Public
GetVertexInGraphSpace (i)
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, pathNode, handler)

Open the node.

Public
RandomPointOnSurface ()

A random point on the surface of the node.

Public
SerializeNode (ctx)
Public
SharedEdge (other)

Returns the edge which is shared with other.

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

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

Public
UpdateRecursiveG (path, pathNode, handler)
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

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

Inherited Public Members

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
Area

Connected component that contains the node.

Public
ClearConnections (alsoReverse)

Remove all connections from this node.

Public
connections

All connections from this node.

Public
ContainsConnection (node)

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

Public
ContainsPoint (point)

Checks if point is inside the node.

Public
DeserializeReferences (ctx)

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

Public
Destroyed
Public
Flags

Holds various bitpacked variables.

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
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
RecalculateConnectionCosts ()

Recalculates all connection costs from this node.

Public
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
Tag

Node tag.

Public
Walkable

True if the node is traversable.

Public

Private/Protected Members

_navmeshHolders

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

Protected Static
ClosestPointOnNodeXZInGraphSpace (p)

Closest point on the node when seen from above.

Package
Destroy ()

Destroys the node.

Package
flags

Bitpacked field holding several pieces of data.

Protected
lockObject

Used for synchronised access to the _navmeshHolders array.

Protected Static Readonly
TemporaryFlag1

Temporary flag for internal purposes.

Package
TemporaryFlag2

Temporary flag for internal purposes.

Package