KX_NavMeshObject(KX_GameObject)
base class — KX_GameObject
- class bge.types.KX_NavMeshObject
Python interface for using and controlling navigation meshes.
- findPath(start, goal)
Finds the path from start to goal points.
- Parameters:
start – the start point
start – 3D Vector
goal – the goal point
start – 3D Vector
- Returns:
a path as a list of points
- Return type:
list of points
- raycast(start, goal)
Raycast from start to goal points.
- Parameters:
start – the start point
start – 3D Vector
goal – the goal point
start – 3D Vector
- Returns:
the hit factor
- Return type:
float
- draw(mode)
Draws a debug mesh for the navigation mesh.
- Parameters:
mode – the drawing mode (one of these constants)
mode – integer
- Returns:
None
- rebuild()
Rebuild the navigation mesh.
- Returns:
None