1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add a method to retrieve all points within a region to AStarGrid2D

This commit is contained in:
Yuri Rubinsky
2024-05-12 11:23:45 +03:00
parent bdc0316217
commit db2e09e9cd
3 changed files with 36 additions and 0 deletions

View File

@@ -209,6 +209,7 @@ public:
void clear();
Vector2 get_point_position(const Vector2i &p_id) const;
TypedArray<Dictionary> get_point_data_in_region(const Rect2i &p_region) const;
Vector<Vector2> get_point_path(const Vector2i &p_from, const Vector2i &p_to, bool p_allow_partial_path = false);
TypedArray<Vector2i> get_id_path(const Vector2i &p_from, const Vector2i &p_to, bool p_allow_partial_path = false);
};