From 7f3688603cb3662e425cb7a1dce15459162c1dc6 Mon Sep 17 00:00:00 2001 From: smix8 <52464204+smix8@users.noreply.github.com> Date: Fri, 20 May 2022 22:55:27 +0200 Subject: Process NavigationAgent2D/3D avoidance on demand only Changes NavigationAgent avoidance callback to a toggle that is disabled by default. Also fixes a few missing descriptions / wrong warnings. --- doc/classes/NavigationAgent2D.xml | 4 ++++ doc/classes/NavigationAgent3D.xml | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/NavigationAgent2D.xml b/doc/classes/NavigationAgent2D.xml index baab91569a..942579f564 100644 --- a/doc/classes/NavigationAgent2D.xml +++ b/doc/classes/NavigationAgent2D.xml @@ -42,6 +42,7 @@ + Returns the [RID] of this agent on the [NavigationServer2D]. @@ -84,6 +85,9 @@ + + If [code]true[/code] the agent is registered for an RVO avoidance callback on the [NavigationServer2D]. When [method NavigationAgent2D.set_velocity] is used and the processing is completed a [code]safe_velocity[/code] Vector2 is received with a signal connection to [signal velocity_computed]. Avoidance processing with many registered agents has a significant performance cost and should only be enabled on agents that currently require it. + The maximum number of neighbors for the agent to consider. diff --git a/doc/classes/NavigationAgent3D.xml b/doc/classes/NavigationAgent3D.xml index 04b148c70d..445fac55fe 100644 --- a/doc/classes/NavigationAgent3D.xml +++ b/doc/classes/NavigationAgent3D.xml @@ -42,6 +42,7 @@ + Returns the [RID] of this agent on the [NavigationServer3D]. @@ -87,6 +88,9 @@ The agent height offset to match the navigation mesh height. + + If [code]true[/code] the agent is registered for an RVO avoidance callback on the [NavigationServer3D]. When [method NavigationAgent3D.set_velocity] is used and the processing is completed a [code]safe_velocity[/code] Vector3 is received with a signal connection to [signal velocity_computed]. Avoidance processing with many registered agents has a significant performance cost and should only be enabled on agents that currently require it. + Ignores collisions on the Y axis. Must be true to move on a horizontal plane. -- cgit v1.2.3