summaryrefslogtreecommitdiffstats
path: root/doc/classes/NavigationServer3D.xml
diff options
context:
space:
mode:
authorsmix8 <52464204+smix8@users.noreply.github.com>2024-04-09 04:27:54 +0200
committersmix8 <52464204+smix8@users.noreply.github.com>2024-04-11 12:32:21 +0200
commit1c134f4a3d8de7b56687cac11415a9fc6623858f (patch)
tree306ee61d609bd79c28b559326e559f992c9008ad /doc/classes/NavigationServer3D.xml
parentb2f425fe680d1ed5d5b5fa9ae289ae93fd294607 (diff)
downloadredot-engine-1c134f4a3d8de7b56687cac11415a9fc6623858f.tar.gz
Add navigation path simplification
Adds navigation path simplification for NavigationServer and NavigationAgent.
Diffstat (limited to 'doc/classes/NavigationServer3D.xml')
-rw-r--r--doc/classes/NavigationServer3D.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/classes/NavigationServer3D.xml b/doc/classes/NavigationServer3D.xml
index 6be9d5165f..6fcf033544 100644
--- a/doc/classes/NavigationServer3D.xml
+++ b/doc/classes/NavigationServer3D.xml
@@ -1094,6 +1094,15 @@
If [code]true[/code] enables debug mode on the NavigationServer.
</description>
</method>
+ <method name="simplify_path">
+ <return type="PackedVector3Array" />
+ <param index="0" name="path" type="PackedVector3Array" />
+ <param index="1" name="epsilon" type="float" />
+ <description>
+ Returns a simplified version of [param path] with less critical path points removed. The simplification amount is in worlds units and controlled by [param epsilon]. The simplification uses a variant of Ramer-Douglas-Peucker algorithm for curve point decimation.
+ Path simplification can be helpful to mitigate various path following issues that can arise with certain agent types and script behaviors. E.g. "steering" agents or avoidance in "open fields".
+ </description>
+ </method>
</methods>
<signals>
<signal name="avoidance_debug_changed">