summaryrefslogtreecommitdiff
path: root/scene/3d/navigation_agent_3d.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-06-14 22:54:13 +0200
committerGitHub <noreply@github.com>2022-06-14 22:54:13 +0200
commitd2a90d62fda657d44478b3e52f24bbed6426cd70 (patch)
treebf353194cb2016e4f38d75427c34735e56f48b97 /scene/3d/navigation_agent_3d.h
parent5a76d7128a38e5e46c373a83e396b755d4971da8 (diff)
parentf10ff0efda43d4856ddea5a778e39c114fe6ce80 (diff)
Merge pull request #62044 from smix8/navigation_navagent_map_change_4.x
Add NavigationAgent2D/3D set_navigation_map() function
Diffstat (limited to 'scene/3d/navigation_agent_3d.h')
-rw-r--r--scene/3d/navigation_agent_3d.h4
1 files changed, 4 insertions, 0 deletions
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;