Fix NavigationObstacle3D height

Fixes NavigationObstacle3D height.
This commit is contained in:
smix8 2023-10-21 00:08:50 +02:00
parent f333e4acf5
commit b30b672649

View File

@ -162,6 +162,8 @@ void NavigationObstacle3D::_notification(int p_what) {
NavigationObstacle3D::NavigationObstacle3D() { NavigationObstacle3D::NavigationObstacle3D() {
obstacle = NavigationServer3D::get_singleton()->obstacle_create(); obstacle = NavigationServer3D::get_singleton()->obstacle_create();
NavigationServer3D::get_singleton()->obstacle_set_height(obstacle, height);
set_radius(radius); set_radius(radius);
set_height(height); set_height(height);
set_vertices(vertices); set_vertices(vertices);