A* Pathfinding Project
3.7.3
The A* Pathfinding Project for Unity 3D
|
Public Member Functions | |
NNInfo (GraphNode node) | |
void | SetConstrained (GraphNode constrainedNode, Vector3 clampedPosition) |
Sets the constrained node. | |
void | UpdateInfo () |
Updates clampedPosition and constClampedPosition from node positions. | |
Static Public Member Functions | |
static | operator GraphNode (NNInfo ob) |
static | operator NNInfo (GraphNode ob) |
static | operator Vector3 (NNInfo ob) |
Public Attributes | |
Vector3 | clampedPosition |
The position clamped to the closest point on the node. | |
Vector3 | constClampedPosition |
Clamped position for the optional constrainedNode. | |
GraphNode | constrainedNode |
Optional to be filled in. | |
GraphNode | node |
Closest node found. | |
|
explicitstatic |
void SetConstrained | ( | GraphNode | constrainedNode, |
Vector3 | clampedPosition | ||
) |
Sets the constrained node.
void UpdateInfo | ( | ) |
Updates clampedPosition and constClampedPosition from node positions.
Vector3 clampedPosition |
The position clamped to the closest point on the node.
Vector3 constClampedPosition |
Clamped position for the optional constrainedNode.
GraphNode constrainedNode |
Optional to be filled in.
If the search will be able to find the constrained node without any extra effort it can fill it in.
GraphNode node |
Closest node found.
This node is not necessarily accepted by any NNConstraint passed.