|
@@ -44,8 +44,8 @@ struct NavMapIteration2D;
|
|
|
class NavMeshQueries2D {
|
|
|
public:
|
|
|
struct PathQuerySlot {
|
|
|
- LocalVector<nav_2d::NavigationPoly> path_corridor;
|
|
|
- Heap<nav_2d::NavigationPoly *, nav_2d::NavPolyTravelCostGreaterThan, nav_2d::NavPolyHeapIndexer> traversable_polys;
|
|
|
+ LocalVector<Nav2D::NavigationPoly> path_corridor;
|
|
|
+ Heap<Nav2D::NavigationPoly *, Nav2D::NavPolyTravelCostGreaterThan, Nav2D::NavPolyHeapIndexer> traversable_polys;
|
|
|
bool in_use = false;
|
|
|
uint32_t slot_index = 0;
|
|
|
};
|
|
@@ -76,8 +76,8 @@ public:
|
|
|
// Path building.
|
|
|
Vector2 begin_position;
|
|
|
Vector2 end_position;
|
|
|
- const nav_2d::Polygon *begin_polygon = nullptr;
|
|
|
- const nav_2d::Polygon *end_polygon = nullptr;
|
|
|
+ const Nav2D::Polygon *begin_polygon = nullptr;
|
|
|
+ const Nav2D::Polygon *end_polygon = nullptr;
|
|
|
uint32_t least_cost_id = 0;
|
|
|
|
|
|
// Map.
|
|
@@ -112,27 +112,27 @@ public:
|
|
|
|
|
|
static bool emit_callback(const Callable &p_callback);
|
|
|
|
|
|
- static Vector2 polygons_get_random_point(const LocalVector<nav_2d::Polygon> &p_polygons, uint32_t p_navigation_layers, bool p_uniformly);
|
|
|
+ static Vector2 polygons_get_random_point(const LocalVector<Nav2D::Polygon> &p_polygons, uint32_t p_navigation_layers, bool p_uniformly);
|
|
|
|
|
|
- static Vector2 polygons_get_closest_point(const LocalVector<nav_2d::Polygon> &p_polygons, const Vector2 &p_point);
|
|
|
- static nav_2d::ClosestPointQueryResult polygons_get_closest_point_info(const LocalVector<nav_2d::Polygon> &p_polygons, const Vector2 &p_point);
|
|
|
- static RID polygons_get_closest_point_owner(const LocalVector<nav_2d::Polygon> &p_polygons, const Vector2 &p_point);
|
|
|
+ static Vector2 polygons_get_closest_point(const LocalVector<Nav2D::Polygon> &p_polygons, const Vector2 &p_point);
|
|
|
+ static Nav2D::ClosestPointQueryResult polygons_get_closest_point_info(const LocalVector<Nav2D::Polygon> &p_polygons, const Vector2 &p_point);
|
|
|
+ static RID polygons_get_closest_point_owner(const LocalVector<Nav2D::Polygon> &p_polygons, const Vector2 &p_point);
|
|
|
|
|
|
static Vector2 map_iteration_get_closest_point(const NavMapIteration2D &p_map_iteration, const Vector2 &p_point);
|
|
|
static RID map_iteration_get_closest_point_owner(const NavMapIteration2D &p_map_iteration, const Vector2 &p_point);
|
|
|
- static nav_2d::ClosestPointQueryResult map_iteration_get_closest_point_info(const NavMapIteration2D &p_map_iteration, const Vector2 &p_point);
|
|
|
+ static Nav2D::ClosestPointQueryResult map_iteration_get_closest_point_info(const NavMapIteration2D &p_map_iteration, const Vector2 &p_point);
|
|
|
static Vector2 map_iteration_get_random_point(const NavMapIteration2D &p_map_iteration, uint32_t p_navigation_layers, bool p_uniformly);
|
|
|
|
|
|
static void map_query_path(NavMap2D *p_map, const Ref<NavigationPathQueryParameters2D> &p_query_parameters, Ref<NavigationPathQueryResult2D> p_query_result, const Callable &p_callback);
|
|
|
|
|
|
static void query_task_map_iteration_get_path(NavMeshPathQueryTask2D &p_query_task, const NavMapIteration2D &p_map_iteration);
|
|
|
- static void _query_task_push_back_point_with_metadata(NavMeshPathQueryTask2D &p_query_task, const Vector2 &p_point, const nav_2d::Polygon *p_point_polygon);
|
|
|
+ static void _query_task_push_back_point_with_metadata(NavMeshPathQueryTask2D &p_query_task, const Vector2 &p_point, const Nav2D::Polygon *p_point_polygon);
|
|
|
static void _query_task_find_start_end_positions(NavMeshPathQueryTask2D &p_query_task, const NavMapIteration2D &p_map_iteration);
|
|
|
static void _query_task_build_path_corridor(NavMeshPathQueryTask2D &p_query_task);
|
|
|
static void _query_task_post_process_corridorfunnel(NavMeshPathQueryTask2D &p_query_task);
|
|
|
static void _query_task_post_process_edgecentered(NavMeshPathQueryTask2D &p_query_task);
|
|
|
static void _query_task_post_process_nopostprocessing(NavMeshPathQueryTask2D &p_query_task);
|
|
|
- static void _query_task_clip_path(NavMeshPathQueryTask2D &p_query_task, const nav_2d::NavigationPoly *p_from_poly, const Vector2 &p_to_point, const nav_2d::NavigationPoly *p_to_poly);
|
|
|
+ static void _query_task_clip_path(NavMeshPathQueryTask2D &p_query_task, const Nav2D::NavigationPoly *p_from_poly, const Vector2 &p_to_point, const Nav2D::NavigationPoly *p_to_poly);
|
|
|
static void _query_task_simplified_path_points(NavMeshPathQueryTask2D &p_query_task);
|
|
|
static bool _query_task_is_connection_owner_usable(const NavMeshPathQueryTask2D &p_query_task, const NavBaseIteration2D *p_owner);
|
|
|
|