diff options
| author | Andrea Catania <info@andreacatania.com> | 2020-02-18 17:08:34 +0100 |
|---|---|---|
| committer | Andrea Catania <info@andreacatania.com> | 2020-02-18 17:12:45 +0100 |
| commit | 79fc7d7d6a662efc2a13d829f9bb5d00d31c8c2a (patch) | |
| tree | c8bb02beafc149ad9bf1e031461263de94c82fb8 /scene/3d/navigation.h | |
| parent | 6e6403669377160885cac45db7b8115325c3932f (diff) | |
| download | redot-engine-79fc7d7d6a662efc2a13d829f9bb5d00d31c8c2a.tar.gz | |
Added utility functions to the new NavigationServer:
- Vector3 get_closest_point_to_segment(const Vector3 &p_from, const Vector3 &p_to, const bool &p_use_collision = false);
- Vector3 get_closest_point(const Vector3 &p_point);
- Vector3 get_closest_point_normal(const Vector3 &p_point);
- Object *get_closest_point_owner(const Vector3 &p_point);
Diffstat (limited to 'scene/3d/navigation.h')
| -rw-r--r-- | scene/3d/navigation.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scene/3d/navigation.h b/scene/3d/navigation.h index 68e041ad73..85887651ff 100644 --- a/scene/3d/navigation.h +++ b/scene/3d/navigation.h @@ -66,7 +66,11 @@ public: return edge_connection_margin; } - Vector<Vector3> get_simple_path(const Vector3 &p_start, const Vector3 &p_end, bool p_optimize = true); + Vector<Vector3> get_simple_path(const Vector3 &p_start, const Vector3 &p_end, bool p_optimize = true) const; + Vector3 get_closest_point_to_segment(const Vector3 &p_from, const Vector3 &p_to, bool p_use_collision = false) const; + Vector3 get_closest_point(const Vector3 &p_point) const; + Vector3 get_closest_point_normal(const Vector3 &p_point) const; + RID get_closest_point_owner(const Vector3 &p_point) const; Navigation(); ~Navigation(); |
