summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorPouleyKetchoupp <pouleyketchoup@gmail.com>2021-08-11 10:38:14 -0700
committerPouleyKetchoupp <pouleyketchoup@gmail.com>2021-08-11 14:54:53 -0700
commitf9176a39ce48685adacca2698b8da8136c5de166 (patch)
tree5c1efcc6c45b7f5b8561985dfc7f97103787dcc1 /modules
parent7188cb60127c1f4e900f080adbc47a55645f1645 (diff)
Make radius & height in CapsuleShape3D independent
Also changed CapsuleMesh to make settings consistent between render and physics.
Diffstat (limited to 'modules')
-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;
}