AINode

from panda3d.ai import AINode
class AINode

This class is used to assign the nodes on the mesh. It holds all the data necessary to compute A* algorithm. It also maintains a lot of vital information such as the neighbor nodes of each node and also its position on the mesh. Note: The Mesh Generator which is a standalone tool makes use of this class to generate the nodes on the mesh.

Inheritance diagram

Inheritance diagram of AINode

__init__(param0: AINode)
__init__(grid_x: int, grid_y: int, pos: panda3d.core.LVecBase3, w: float, l: float, h: float)
contains(x: float, y: float)bool

This is a handy function which returns true if the passed position is within the node’s dimensions.