A* Pathfinding Project
4.1.9
The A* Pathfinding Project for Unity 3D
|
Represents a connection to another node. More...
Represents a connection to another node.
Public Member Functions | |
Connection (GraphNode node, uint cost, byte shapeEdge=0xFF) | |
override bool | Equals (object obj) |
override int | GetHashCode () |
Public Attributes | |
uint | cost |
Cost of moving along this connection. More... | |
GraphNode | node |
Node which this connection goes to. More... | |
byte | shapeEdge |
Side of the node shape which this connection uses. More... | |
Connection | ( | GraphNode | node, |
uint | cost, | ||
byte | shapeEdge = 0xFF |
||
) |
override bool Equals | ( | object | obj | ) |
override int GetHashCode | ( | ) |
uint cost |
Cost of moving along this connection.
A cost of 1000 corresponds approximately to the cost of moving one world unit.
GraphNode node |
Node which this connection goes to.
byte shapeEdge |
Side of the node shape which this connection uses.
Used for mesh nodes. A value of 0 corresponds to using the side for vertex 0 and vertex 1 on the node. 1 corresponds to vertex 1 and 2, etc. A negative value means that this connection does not use any side at all (this is mostly used for off-mesh links).