A* Pathfinding Project  3.6.1
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
ConvexMeshNode Class Reference

Public Member Functions

 ConvexMeshNode (AstarPath astar)
 
override Vector3 ClosestPointOnNode (Vector3 p)
 
override Vector3 ClosestPointOnNodeXZ (Vector3 p)
 
override void GetConnections (GraphNodeDelegate del)
 Calls the delegate with all connections from this node.
 
override Int3 GetVertex (int i)
 
override int GetVertexCount ()
 
int GetVertexIndex (int i)
 
override void Open (Path path, PathNode pathNode, PathHandler handler)
 Open the node.
 
void SetPosition (Int3 p)
 
- Public Member Functions inherited from MeshNode
 MeshNode (AstarPath astar)
 
override void AddConnection (GraphNode node, uint cost)
 Add a connection from this node to the specified node.
 
override void ClearConnections (bool alsoReverse)
 Remove all connections from this node.
 
override bool ContainsConnection (GraphNode node)
 Checks if this node has a connection to the specified node.
 
virtual bool ContainsPoint (Int3 p)
 Checks if p is inside the node.
 
override void DeserializeReferences (GraphSerializationContext ctx)
 Used to deserialize references to other nodes e.g connections.
 
override void FloodFill (Stack< GraphNode > stack, uint region)
 
override void RemoveConnection (GraphNode node)
 Removes any connection from this node to the specified node.
 
override void SerializeReferences (GraphSerializationContext ctx)
 Used to serialize references to other nodes e.g connections.
 
override void UpdateRecursiveG (Path path, PathNode pathNode, PathHandler handler)
 
- Public Member Functions inherited from GraphNode
 GraphNode (AstarPath astar)
 Constructor for a graph node.
 
virtual void DeserializeNode (GraphSerializationContext ctx)
 
void Destroy ()
 Destroys the node.
 
virtual bool GetPortal (GraphNode other, List< Vector3 > left, List< Vector3 > right, bool backwards)
 Add a portal from this node to the specified node.
 
virtual void RecalculateConnectionCosts ()
 Recalculates all connection costs from this node.
 
virtual void SerializeNode (GraphSerializationContext ctx)
 
void UpdateG (Path path, PathNode pathNode)
 

Static Protected Member Functions

static INavmeshHolder GetNavmeshHolder (uint graphIndex)
 

Static Protected Attributes

static INavmeshHolder[] navmeshHolders = new INavmeshHolder[0]
 

Static Private Member Functions

static ConvexMeshNode ()
 

Private Attributes

int[] indices
 

Additional Inherited Members

- Public Attributes inherited from MeshNode
uint[] connectionCosts
 
GraphNode[] connections
 
- Protected Attributes inherited from GraphNode
uint flags
 
- Properties inherited from GraphNode
uint Area [get, set]
 
bool Destroyed [get]
 
uint Flags [get, set]
 Holds various bitpacked variables.
 
uint graphIndex [get, set]
 
uint GraphIndex [get, set]
 
int NodeIndex [get]
 
uint Penalty [get, set]
 Penalty cost for walking on this node.
 
Int3 Position [get]
 
uint Tag [get, set]
 
uint tags [get, set]
 
bool walkable [get, set]
 
bool Walkable [get, set]
 True if the node is traversable.
 

Constructor & Destructor Documentation

static ConvexMeshNode ( )
staticprivate

Member Function Documentation

override Vector3 ClosestPointOnNode ( Vector3  p)
virtual

Implements MeshNode.

override Vector3 ClosestPointOnNodeXZ ( Vector3  p)
virtual

Implements MeshNode.

override void GetConnections ( GraphNodeDelegate  del)
virtual

Calls the delegate with all connections from this node.

Reimplemented from MeshNode.

static INavmeshHolder GetNavmeshHolder ( uint  graphIndex)
staticprotected
override Int3 GetVertex ( int  i)
virtual

Implements MeshNode.

override int GetVertexCount ( )
virtual

Implements MeshNode.

int GetVertexIndex ( int  i)
override void Open ( Path  path,
PathNode  pathNode,
PathHandler  handler 
)
virtual

Open the node.

Implements GraphNode.

void SetPosition ( Int3  p)

Member Data Documentation

int [] indices
private
INavmeshHolder [] navmeshHolders = new INavmeshHolder[0]
staticprotected

The documentation for this class was generated from the following file: