A* Pathfinding Project
4.1.0
The A* Pathfinding Project for Unity 3D
|
Blocks single nodes in a graph. More...
Blocks single nodes in a graph.
This is useful in turn based games where you want units to avoid all other units while pathfinding but not be blocked by itself.
Public Member Functions | |
void | Block (GraphNode node) |
Block specified node. | |
void | BlockAt (Vector3 position) |
Block node closest to the specified position. | |
void | BlockAtCurrentPosition () |
Block node closest to the position of this object. | |
void | Unblock () |
Unblock the last node that was blocked (if any) | |
Public Attributes | |
BlockManager | manager |
Properties | |
GraphNode | lastBlocked [get, set] |
Additional Inherited Members | |
Protected Member Functions inherited from VersionedMonoBehaviour | |
virtual void | Awake () |
virtual int | OnUpgradeSerializedData (int version, bool unityThread) |
Handle serialization backwards compatibility. | |
void Block | ( | GraphNode | node | ) |
Block specified node.
Will unblock the last node that was reserved (if any)
void BlockAt | ( | Vector3 | position | ) |
Block node closest to the specified position.
Will unblock the last node that was reserved (if any)
void BlockAtCurrentPosition | ( | ) |
Block node closest to the position of this object.
Will unblock the last node that was reserved (if any)
void Unblock | ( | ) |
Unblock the last node that was blocked (if any)
BlockManager manager |
|
getset |