summaryrefslogtreecommitdiffstats
path: root/servers/navigation_server_2d_dummy.h
diff options
context:
space:
mode:
authorsmix8 <52464204+smix8@users.noreply.github.com>2024-08-25 22:59:13 +0200
committersmix8 <52464204+smix8@users.noreply.github.com>2024-09-10 01:38:46 +0200
commit287fdb16d53c38f6766f773bebbea33c5270b8f3 (patch)
tree4e316fbc904e2fb7f46d922e327840d9a2fde25a /servers/navigation_server_2d_dummy.h
parent21249950da50e094b141f73646fd477d7832c8db (diff)
downloadredot-engine-287fdb16d53c38f6766f773bebbea33c5270b8f3.tar.gz
Add navigation region point and segment queries
Adds point and segment queries for regions, e.g. closet point, point normal, or segment intersection.
Diffstat (limited to 'servers/navigation_server_2d_dummy.h')
-rw-r--r--servers/navigation_server_2d_dummy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/navigation_server_2d_dummy.h b/servers/navigation_server_2d_dummy.h
index 465cfcca98..0664b37ef0 100644
--- a/servers/navigation_server_2d_dummy.h
+++ b/servers/navigation_server_2d_dummy.h
@@ -83,6 +83,7 @@ public:
int region_get_connections_count(RID p_region) const override { return 0; }
Vector2 region_get_connection_pathway_start(RID p_region, int p_connection_id) const override { return Vector2(); }
Vector2 region_get_connection_pathway_end(RID p_region, int p_connection_id) const override { return Vector2(); }
+ Vector2 region_get_closest_point(RID p_region, const Vector2 &p_point) const override { return Vector2(); }
Vector2 region_get_random_point(RID p_region, uint32_t p_navigation_layers, bool p_uniformly) const override { return Vector2(); };
RID link_create() override { return RID(); }