summaryrefslogtreecommitdiffstats
path: root/servers/navigation_server_2d.h
diff options
context:
space:
mode:
authorsmix8 <52464204+smix8@users.noreply.github.com>2023-06-10 15:16:04 +0200
committersmix8 <52464204+smix8@users.noreply.github.com>2023-06-12 14:26:45 +0200
commitc1fc331b8865bd099df210fa434782bc9b60b2d8 (patch)
tree37d40b4547240ab19bd0b4ba8e945ec99a55f508 /servers/navigation_server_2d.h
parent66423d440e53109627717edbada77856c514bb6f (diff)
downloadredot-engine-c1fc331b8865bd099df210fa434782bc9b60b2d8.tar.gz
Update navigation obstacle API
Updates navigation obstacle API.
Diffstat (limited to 'servers/navigation_server_2d.h')
-rw-r--r--servers/navigation_server_2d.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/navigation_server_2d.h b/servers/navigation_server_2d.h
index 88246019b9..36c964e2ea 100644
--- a/servers/navigation_server_2d.h
+++ b/servers/navigation_server_2d.h
@@ -240,8 +240,12 @@ public:
/// Creates the obstacle.
virtual RID obstacle_create();
+ virtual void obstacle_set_avoidance_enabled(RID p_obstacle, bool p_enabled);
+ virtual bool obstacle_get_avoidance_enabled(RID p_obstacle) const;
virtual void obstacle_set_map(RID p_obstacle, RID p_map);
virtual RID obstacle_get_map(RID p_obstacle) const;
+ virtual void obstacle_set_radius(RID p_obstacle, real_t p_radius);
+ virtual void obstacle_set_velocity(RID p_obstacle, Vector2 p_velocity);
virtual void obstacle_set_position(RID p_obstacle, Vector2 p_position);
virtual void obstacle_set_vertices(RID p_obstacle, const Vector<Vector2> &p_vertices);
virtual void obstacle_set_avoidance_layers(RID p_obstacle, uint32_t p_layers);