From f10ff0efda43d4856ddea5a778e39c114fe6ce80 Mon Sep 17 00:00:00 2001 From: smix8 <52464204+smix8@users.noreply.github.com> Date: Tue, 14 Jun 2022 20:39:15 +0200 Subject: Add NavigationAgent set_navigation_map() function Add NavigationAgent set_navigation_map() and get_navigation_map() function. --- scene/3d/navigation_agent_3d.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scene/3d/navigation_agent_3d.h') diff --git a/scene/3d/navigation_agent_3d.h b/scene/3d/navigation_agent_3d.h index 633bf091d1..8e5cb83f6e 100644 --- a/scene/3d/navigation_agent_3d.h +++ b/scene/3d/navigation_agent_3d.h @@ -42,6 +42,7 @@ class NavigationAgent3D : public Node { RID agent; RID map_before_pause; + RID map_override; bool avoidance_enabled = false; uint32_t navigable_layers = 1; @@ -89,6 +90,9 @@ public: void set_navigable_layers(uint32_t p_layers); uint32_t get_navigable_layers() const; + void set_navigation_map(RID p_navigation_map); + RID get_navigation_map() const; + void set_target_desired_distance(real_t p_dd); real_t get_target_desired_distance() const { return target_desired_distance; -- cgit v1.2.3