You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-04 17:04:49 +00:00
Fix NavigationObstacle elevation
FixesNavigationObstacle elevation.
(cherry picked from commit fc4cc27e66)
This commit is contained in:
@@ -1126,6 +1126,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) {
|
||||
|
||||
Reference in New Issue
Block a user