From c394ea518e48bbce710b251cf20be078505ef8d7 Mon Sep 17 00:00:00 2001 From: smix8 <52464204+smix8@users.noreply.github.com> Date: Fri, 1 Jul 2022 18:58:03 +0200 Subject: Add more detailed Navigation Debug Visualization - Adds more customization options to ProjectSettings. - Displays navregion edge connections and navigation polygon edges in editor and at runtime. - Majority of debug code moved from SceneTree to NavigationServer. - Removes the irritating debug MeshInstance child node from NavigationRegion3D and replaces it with direct RenderingServer API. --- doc/classes/NavigationServer3D.xml | 5 +++++ doc/classes/ProjectSettings.xml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/NavigationServer3D.xml b/doc/classes/NavigationServer3D.xml index 5185b353bc..8600c2643a 100644 --- a/doc/classes/NavigationServer3D.xml +++ b/doc/classes/NavigationServer3D.xml @@ -415,5 +415,10 @@ Emitted when a navigation map is updated, when a region moves or is modified. + + + Emitted when navigation debug settings are changed. Only available in debug builds. + + diff --git a/doc/classes/ProjectSettings.xml b/doc/classes/ProjectSettings.xml index 553005c4c4..bd09349f51 100644 --- a/doc/classes/ProjectSettings.xml +++ b/doc/classes/ProjectSettings.xml @@ -491,9 +491,39 @@ Color of the disabled navigation geometry, visible when "Visible Navigation" is enabled in the Debug menu. + + Color to display edge connections between navigation regions, visible when "Visible Navigation" is enabled in the Debug menu. + + + If enabled, displays edge connections between navigation regions when "Visible Navigation" is enabled in the Debug menu. + + + If enabled, displays edge connections between navigation regions through geometry when "Visible Navigation" is enabled in the Debug menu. + + + If enabled, displays navigation mesh polygon edges when "Visible Navigation" is enabled in the Debug menu. + + + If enabled, displays navigation mesh polygon edges through geometry when "Visible Navigation" is enabled in the Debug menu. + + + If enabled, colorizes each navigation mesh polygon face with a random color when "Visible Navigation" is enabled in the Debug menu. + Color of the navigation geometry, visible when "Visible Navigation" is enabled in the Debug menu. + + Color to display enabled navigation mesh polygon edges, visible when "Visible Navigation" is enabled in the Debug menu. + + + Color to display disabled navigation mesh polygon edges, visible when "Visible Navigation" is enabled in the Debug menu. + + + Color to display enabled navigation mesh polygon faces, visible when "Visible Navigation" is enabled in the Debug menu. + + + Color to display disabled navigation mesh polygon faces, visible when "Visible Navigation" is enabled in the Debug menu. + Color of the curve path geometry, visible when "Visible Paths" is enabled in the Debug menu. -- cgit v1.2.3