diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-05-29 12:10:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-29 12:10:37 +0200 |
commit | 1620669f4e37c21fa45991a9bc37410014845419 (patch) | |
tree | cb9162147bba330ff007c12b349dba070b385a3a /core/math/a_star.cpp | |
parent | 6aa399be59b886e1c8c371f4ceb09f41c86a0584 (diff) | |
parent | 69d5de632e04d48a247d50c1dc2c09322129c73a (diff) | |
download | redot-engine-1620669f4e37c21fa45991a9bc37410014845419.tar.gz |
Merge pull request #39051 from Xrayez/geometry-split
Split `Geometry` singleton into `Geometry2D` and `Geometry3D`
Diffstat (limited to 'core/math/a_star.cpp')
-rw-r--r-- | core/math/a_star.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/math/a_star.cpp b/core/math/a_star.cpp index 45c4a207c3..580a7cf7bb 100644 --- a/core/math/a_star.cpp +++ b/core/math/a_star.cpp @@ -30,7 +30,7 @@ #include "a_star.h" -#include "core/math/geometry.h" +#include "core/math/geometry_3d.h" #include "core/script_language.h" #include "scene/scene_string_names.h" @@ -309,7 +309,7 @@ Vector3 AStar::get_closest_position_in_segment(const Vector3 &p_point) const { to_point->pos, }; - Vector3 p = Geometry::get_closest_point_to_segment(p_point, segment); + Vector3 p = Geometry3D::get_closest_point_to_segment(p_point, segment); real_t d = p_point.distance_squared_to(p); if (!found || d < closest_dist) { closest_point = p; |