From 1de99820b89641102c3b47ab0081fd82e673aa8d Mon Sep 17 00:00:00 2001 From: Duroxxigar Date: Tue, 19 Oct 2021 00:46:33 -0400 Subject: [PATCH] Change default navmesh agent radius to match nav agent node's default radius --- doc/classes/NavigationMesh.xml | 2 +- scene/resources/navigation_mesh.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/NavigationMesh.xml b/doc/classes/NavigationMesh.xml index e476949360b..b100a209637 100644 --- a/doc/classes/NavigationMesh.xml +++ b/doc/classes/NavigationMesh.xml @@ -84,7 +84,7 @@ The maximum slope that is considered walkable, in degrees. - + The distance to erode/shrink the walkable area of the heightfield away from obstructions. [b]Note:[/b] While baking, this value will be rounded up to the nearest multiple of [member cell/size]. diff --git a/scene/resources/navigation_mesh.h b/scene/resources/navigation_mesh.h index 1cdf7a07ede..009239838f3 100644 --- a/scene/resources/navigation_mesh.h +++ b/scene/resources/navigation_mesh.h @@ -85,7 +85,7 @@ protected: float cell_size = 0.3f; float cell_height = 0.2f; float agent_height = 2.0f; - float agent_radius = 0.6f; + float agent_radius = 1.0f; float agent_max_climb = 0.9f; float agent_max_slope = 45.0f; float region_min_size = 8.0f;