40 LVecBase3 _prev_position;
43 std::vector<int> _previous_obstacles;
45 std::vector<NodePath> _dynamic_obstacle;
51 void trace_path(
Node* src);
53 void create_nav_mesh(
const char* navmesh_filename);
54 void assign_neighbor_nodes(
const char* navmesh_filename);
55 void do_dynamic_avoid();
56 void clear_previous_obstacles();
58 void set_path_find(
const char* navmesh_filename);
59 void path_find(LVecBase3 pos, std::string type =
"normal");
60 void path_find(
NodePath target, std::string type =
"normal");
61 void add_obstacle_to_mesh(
NodePath obstacle);
62 void dynamic_avoid(
NodePath obstacle);
This class is used to assign the nodes on the mesh.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class implements pathfinding using A* algorithm.
Encapsulates creation of a series of connected or disconnected line segments or points,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class contains all the members and functions that are required to form an interface between the ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
A node that holds Geom objects, renderable pieces of geometry.