# Capsule shape height setting

**URL:** <https://forum.defold.com/t/capsule-shape-height-setting/72944>\
**Category:** Questions\
**Created:** [March 24, 2023, 8:15am UTC](https://forum.defold.com/t/capsule-shape-height-setting/72944 "2023-03-24T08:15:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon95708182](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@anon95708182](https://forum.defold.com/u/anon95708182)\
**Post date:** [March 24, 2023, 8:15am UTC](https://forum.defold.com/t/capsule-shape-height-setting/72944/1 "2023-03-24T08:15:12Z")

</div>

I have noticed a change in the height setting of a capsule shape in the editor. It now seems to reflect the straight part of the capsule only. I am sure this wasn’t the case earlier. Or was it and I never noticed? 🤔  
All 3 shapes in the screenshot are set to 1 meter in height, yet the capsule is height + diameter, 2 meters in this case. And so the center of the capsule is at 1 meter.

 ![Screenshot 2023-03-24 at 09.06.35](https://forum-defold-uploads.b-cdn.net/original/3X/b/5/b5fca7b5d822614d8a6356c50a5cee1649a3dd52.png)  
I checked some of my old projects and the capsules are now taller too.  
Is this a change I might have missed or might this be a bug?

---

<div class="post-metadata">

**Author:** ![astrochili](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/astrochili/32/37266_2.png) [@astrochili](https://forum.defold.com/u/astrochili)\
**Post date:** [March 24, 2023, 8:48am UTC](https://forum.defold.com/t/capsule-shape-height-setting/72944/2 "2023-03-24T08:48:26Z")

</div>

This is due to the specific physics of Bullet - [Bullet Collision Detection & Physics Library: btCapsuleShape Class Reference](https://pybullet.org/Bullet/BulletFull/classbtCapsuleShape.html#details). The height of the capsule here is the height between the centers of the two spheres to avoid deformation of the upper and lower spheres and to easily calculate collisions.

---

<div class="post-metadata">

**Author:** ![anon95708182](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@anon95708182](https://forum.defold.com/u/anon95708182)\
**Post date:** [March 24, 2023, 8:52am UTC](https://forum.defold.com/t/capsule-shape-height-setting/72944/3 "2023-03-24T08:52:01Z")

</div>

Aha - I see. Thank you @astrochili!
