The AI class contains functions for usage of pathfinding algorithms. Methods for finding a path on a grid or in a custom node system are available.
VB.NET
Dim AI As TVAI AI = Scene.CreateAI()
C++
//todo
| Method | Description |
|---|---|
| AddNode | Adds a node to the node-graph. |
| AddNodeArray | Adds multiple nodes to the node-graph. |
| AddNodeArrayEx | Adds multiple nodes to the node-graph. |
| AddNodeEx | Adds a node to the node-graph. |
| AddNodeLink | Adds a connection between two nodes. |
| CreateNodeGraph | Compiles the node-graph. |
| Destroy | Destroys the internal object. |
| EnableNode | Enables or disables a node. |
| FindGridPath | Finds a path in a grid. |
| FindGridPathEx | Finds a path in a grid. |
| FindNodePath | Finds a path in a node-graph. |
| FindNodePathEx | Finds a path in a node-graph. |
| GetGridWeight | Returns the weight of an element in a grid. |
| GetIndex | Returns the internal index. |
| GetNearestNode | Returns the nearest node to a position. |
| GetNodeByPosition | Returns the node at a position. |
| GetNodeCount | Returns the count of nodes. |
| GetNodePosition | Returns the position of a node. |
| GetNodeWeight | Returns the weight of a node. |
| GetTag | Returns the user-defined tag information. |
| GetUserData | Returns the user-defined extra information. |
| InitGridSystem | Initializes a grid. |
| InitNodeSystem | Initializes a node graph. |
| IsNodeEnabled | Returns if a node is enabled. |
| Load | Loads an AI-graph from a file. |
| RemoveNode | Removes a node from the node-graph. |
| RemoveNodeLink | Removes a link between two nodes. |
| Save | Saves an AI-graph to a file. |
| SetGridParameters | Sets the parameters of the grid. |
| SetGridWeight | Sets the weight of an element in the grid. |
| SetGridWeightArray | Sets multiple weights in the grid. |
| SetIndex | Sets the internal index (use with caution). |
| SetNodePosition | Sets the position of a node in the node-graph. |
| SetNodeSystemParameters | Sets the parameters of the node-graph. |
| SetNodeWeight | Sets the weight of a node in the node-graph. |
| SetTag | Sets the user-defined tag information. |
| SetUserData | Sets the user-defined extra information. |