Merge pull request #84830 from smix8/fix_obstacle_elevation

Fix NavigationObstacle elevation
This commit is contained in:
Rémi Verschelde 2023-11-13 12:21:01 +01:00
commit 8ce4ff27fa
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -1135,6 +1135,8 @@ void NavMap::_update_rvo_obstacles_tree_2d() {
for (size_t i = 0; i < rvo_2d_vertices.size(); i++) {
RVO2D::Obstacle2D *rvo_2d_obstacle = new RVO2D::Obstacle2D();
rvo_2d_obstacle->point_ = rvo_2d_vertices[i];
rvo_2d_obstacle->elevation_ = _obstacle_position.y;
rvo_2d_obstacle->avoidance_layers_ = _obstacle_avoidance_layers;
if (i != 0) {