pathfinding3d.core.node module
- class pathfinding3d.core.node.Node[source]
Bases:
object
Basic node class, saves calculated values for pathfinding
- h
- g
- f
- opened
- closed
- parent
- retain_count
- tested
- class pathfinding3d.core.node.GridNode(x=0, y=0, z=0, walkable=True, weight=1.0, grid_id=None, connections=<factory>)[source]
Bases:
Node
Basic node in a grid.
- Parameters:
- connect(other_node)[source]
Connect this node to another node.
- Parameters:
other_node (GridNode) – The node to connect to.
- h
- g
- f
- opened
- closed
- parent
- retain_count
- tested
- __init__(x=0, y=0, z=0, walkable=True, weight=1.0, grid_id=None, connections=<factory>)
- cleanup()
Reset all calculated values, fresh start for pathfinding