summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsmix8 <52464204+smix8@users.noreply.github.com>2023-10-21 00:08:50 +0200
committersmix8 <52464204+smix8@users.noreply.github.com>2023-10-21 00:08:50 +0200
commitb30b672649ec2f0f068b4505d3ba79567657fe0f (patch)
treed9e9e0b86170d9c58d385be77464248877fd0e56
parentf333e4acf5b9cb04b3fba5dfc554107295db87b1 (diff)
downloadredot-engine-b30b672649ec2f0f068b4505d3ba79567657fe0f.tar.gz
Fix NavigationObstacle3D height
Fixes NavigationObstacle3D height.
-rw-r--r--scene/3d/navigation_obstacle_3d.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/3d/navigation_obstacle_3d.cpp b/scene/3d/navigation_obstacle_3d.cpp
index df6dd99aac..c4301d7845 100644
--- a/scene/3d/navigation_obstacle_3d.cpp
+++ b/scene/3d/navigation_obstacle_3d.cpp
@@ -162,6 +162,8 @@ void NavigationObstacle3D::_notification(int p_what) {
NavigationObstacle3D::NavigationObstacle3D() {
obstacle = NavigationServer3D::get_singleton()->obstacle_create();
+ NavigationServer3D::get_singleton()->obstacle_set_height(obstacle, height);
+
set_radius(radius);
set_height(height);
set_vertices(vertices);