Browse Source

Reapply -Avoid adding margin twice along capsule Y axis

Co-authored-by: Andrea Catania <[email protected]>
Marcel Admiraal 4 years ago
parent
commit
0e12a0c66a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/bullet/shape_bullet.cpp

+ 1 - 1
modules/bullet/shape_bullet.cpp

@@ -275,7 +275,7 @@ void CapsuleShapeBullet::setup(real_t p_height, real_t p_radius) {
 }
 
 btCollisionShape *CapsuleShapeBullet::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 */