summaryrefslogtreecommitdiff
path: root/scene/3d/navigation_obstacle_3d.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/3d/navigation_obstacle_3d.h')
-rw-r--r--scene/3d/navigation_obstacle_3d.h21
1 files changed, 5 insertions, 16 deletions
diff --git a/scene/3d/navigation_obstacle_3d.h b/scene/3d/navigation_obstacle_3d.h
index b58d7c4991..ab0b158303 100644
--- a/scene/3d/navigation_obstacle_3d.h
+++ b/scene/3d/navigation_obstacle_3d.h
@@ -5,8 +5,8 @@
/* GODOT ENGINE */
/* https://godotengine.org */
/*************************************************************************/
-/* Copyright (c) 2007-2020 Juan Linietsky, Ariel Manzur. */
-/* Copyright (c) 2014-2020 Godot Engine contributors (cf. AUTHORS.md). */
+/* Copyright (c) 2007-2021 Juan Linietsky, Ariel Manzur. */
+/* Copyright (c) 2014-2021 Godot Engine contributors (cf. AUTHORS.md). */
/* */
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
@@ -31,15 +31,12 @@
#ifndef NAVIGATION_OBSTACLE_H
#define NAVIGATION_OBSTACLE_H
-#include "scene/main/node.h"
-
-class Navigation3D;
+#include "scene/3d/node_3d.h"
class NavigationObstacle3D : public Node {
GDCLASS(NavigationObstacle3D, Node);
- Navigation3D *navigation;
-
+ Node3D *parent_node3d = nullptr;
RID agent;
protected:
@@ -50,19 +47,11 @@ public:
NavigationObstacle3D();
virtual ~NavigationObstacle3D();
- void set_navigation(Navigation3D *p_nav);
- const Navigation3D *get_navigation() const {
- return navigation;
- }
-
- void set_navigation_node(Node *p_nav);
- Node *get_navigation_node() const;
-
RID get_rid() const {
return agent;
}
- virtual String get_configuration_warning() const;
+ TypedArray<String> get_configuration_warnings() const override;
private:
void update_agent_shape();