From 79fc7d7d6a662efc2a13d829f9bb5d00d31c8c2a Mon Sep 17 00:00:00 2001 From: Andrea Catania Date: Tue, 18 Feb 2020 17:08:34 +0100 Subject: 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); --- doc/classes/Navigation.xml | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) (limited to 'doc/classes/Navigation.xml') diff --git a/doc/classes/Navigation.xml b/doc/classes/Navigation.xml index d7da753c61..8057aca127 100644 --- a/doc/classes/Navigation.xml +++ b/doc/classes/Navigation.xml @@ -15,7 +15,7 @@ - + @@ -28,6 +28,46 @@ Returns the path between two given points. Points are in local coordinate space. If [code]optimize[/code] is [code]true[/code] (the default), the agent properties associated with each [NavigationMesh] (radius, height, etc.) are considered in the path calculation, otherwise they are ignored. + + + + + + + + + + + Returns the closest point between the navigation surface and the segment. + + + + + + + + + Returns the point closest to the provided [code]point[/code] on the navigation mesh surface. + + + + + + + + + Returns the normal for the point returned by [method get_closest_point]. + + + + + + + + + Returns the owner region RID for the point returned by [method get_closest_point]. + + -- cgit v1.2.3