summaryrefslogtreecommitdiff
path: root/modules/navigation
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-08-12 07:51:47 +0200
committerGitHub <noreply@github.com>2021-08-12 07:51:47 +0200
commitdf598e8fb648977720c846241554762b3e93ab94 (patch)
tree5c1efcc6c45b7f5b8561985dfc7f97103787dcc1 /modules/navigation
parent7188cb60127c1f4e900f080adbc47a55645f1645 (diff)
parentf9176a39ce48685adacca2698b8da8136c5de166 (diff)
Merge pull request #51522 from nekomatata/capsule-3d-independent-height
Make radius & height in CapsuleShape3D independent
Diffstat (limited to 'modules/navigation')
-rw-r--r--modules/navigation/navigation_mesh_generator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/navigation/navigation_mesh_generator.cpp b/modules/navigation/navigation_mesh_generator.cpp
index 74da939e6f..905d10c9d4 100644
--- a/modules/navigation/navigation_mesh_generator.cpp
+++ b/modules/navigation/navigation_mesh_generator.cpp
@@ -187,7 +187,7 @@ void NavigationMeshGenerator::_parse_geometry(Transform3D p_accumulated_transfor
Ref<CapsuleMesh> capsule_mesh;
capsule_mesh.instantiate();
capsule_mesh->set_radius(capsule->get_radius());
- capsule_mesh->set_mid_height(capsule->get_height() / 2.0);
+ capsule_mesh->set_height(capsule->get_height());
mesh = capsule_mesh;
}