diff options
author | Andrea Catania <info@andreacatania.com> | 2020-09-06 11:33:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-06 11:33:27 +0200 |
commit | 53e42930d9f0c0ae546f30b0f46cab7e5c094344 (patch) | |
tree | 8a18802638248209a9e513e2367c0af70ac30952 /modules/bullet/shape_bullet.cpp | |
parent | 6831da630f5609e1b659d65425d9da07e25df616 (diff) |
Avoid adding margin twice along capsule Y axis
Diffstat (limited to 'modules/bullet/shape_bullet.cpp')
-rw-r--r-- | modules/bullet/shape_bullet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/bullet/shape_bullet.cpp b/modules/bullet/shape_bullet.cpp index 274493ed17..74d6e073b3 100644 --- a/modules/bullet/shape_bullet.cpp +++ b/modules/bullet/shape_bullet.cpp @@ -308,7 +308,7 @@ void CapsuleShapeBullet::setup(real_t p_height, real_t p_radius) { } btCollisionShape *CapsuleShapeBullet::internal_create_bt_shape(const btVector3 &p_implicit_scale, real_t p_extra_edge) { - return prepare(ShapeBullet::create_shape_capsule(radius * p_implicit_scale[0] + p_extra_edge, height * p_implicit_scale[1] + p_extra_edge)); + return prepare(ShapeBullet::create_shape_capsule(radius * p_implicit_scale[0] + p_extra_edge, height * p_implicit_scale[1])); } /* Cylinder */ |