Skip to content

Commit

Permalink
Merge pull request godotengine#84830 from smix8/fix_obstacle_elevation
Browse files Browse the repository at this point in the history
Fix NavigationObstacle elevation
  • Loading branch information
akien-mga committed Nov 13, 2023
2 parents 787e98e + fc4cc27 commit 8ce4ff2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/navigation/nav_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8ce4ff2

Please sign in to comment.