Fix NavigationObstacle3D height

Fixes NavigationObstacle3D height.
This commit is contained in:
smix8 2023-10-21 00:08:50 +02:00
parent f333e4acf5
commit b30b672649
1 changed files with 2 additions and 0 deletions

View File

@ -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);