A* Pathfinding Project
4.2.7
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. More... | |
void | BlockAt (Vector3 position) |
Block node closest to the specified position. More... | |
void | BlockAtCurrentPosition () |
Block node closest to the position of this object. More... | |
void | Unblock () |
Unblock the last node that was blocked (if any) More... | |
Public Attributes | |
BlockManager | manager |
Properties | |
GraphNode | lastBlocked [get, private set] |
Additional Inherited Members | |
Protected Member Functions inherited from VersionedMonoBehaviour | |
virtual void | Awake () |
virtual int | OnUpgradeSerializedData (int version, bool unityThread) |
Handle serialization backwards compatibility. More... | |
virtual void | Reset () |
Handle serialization backwards compatibility. More... | |
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 |
|
getprivate set |