diff options
| author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-08-11 10:38:14 -0700 |
|---|---|---|
| committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-08-11 14:54:53 -0700 |
| commit | f9176a39ce48685adacca2698b8da8136c5de166 (patch) | |
| tree | 5c1efcc6c45b7f5b8561985dfc7f97103787dcc1 /modules | |
| parent | 7188cb60127c1f4e900f080adbc47a55645f1645 (diff) | |
| download | redot-engine-f9176a39ce48685adacca2698b8da8136c5de166.tar.gz | |
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.cpp | 2 |
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; } |
