summaryrefslogtreecommitdiffstats
path: root/core/math/a_star.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-08-28 00:10:47 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-08-28 00:10:47 +0200
commit1e6b6eaf49fcee309b44a13e5585b6731d44bec4 (patch)
tree245edc9f64025f3df1c943b28a36e3659816440a /core/math/a_star.h
parent9c7cf5440cba7e2bbccd9d6e516c0f990d45ce4a (diff)
parented61d416978760f6bdb511670fcd395890319ff2 (diff)
downloadredot-engine-1e6b6eaf49fcee309b44a13e5585b6731d44bec4.tar.gz
Merge pull request #92123 from timothyqiu/estimate-end
Change param name of AStar's `_estimate_cost` method
Diffstat (limited to 'core/math/a_star.h')
-rw-r--r--core/math/a_star.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/a_star.h b/core/math/a_star.h
index 8e054c4789..143a3bec61 100644
--- a/core/math/a_star.h
+++ b/core/math/a_star.h
@@ -120,7 +120,7 @@ class AStar3D : public RefCounted {
protected:
static void _bind_methods();
- virtual real_t _estimate_cost(int64_t p_from_id, int64_t p_to_id);
+ virtual real_t _estimate_cost(int64_t p_from_id, int64_t p_end_id);
virtual real_t _compute_cost(int64_t p_from_id, int64_t p_to_id);
GDVIRTUAL2RC(real_t, _estimate_cost, int64_t, int64_t)
@@ -176,7 +176,7 @@ class AStar2D : public RefCounted {
protected:
static void _bind_methods();
- virtual real_t _estimate_cost(int64_t p_from_id, int64_t p_to_id);
+ virtual real_t _estimate_cost(int64_t p_from_id, int64_t p_end_id);
virtual real_t _compute_cost(int64_t p_from_id, int64_t p_to_id);
GDVIRTUAL2RC(real_t, _estimate_cost, int64_t, int64_t)