# BoundingBox's extent size has half sizes, is this expected?

**URL:** <https://forum.babylonjs.com/t/boundingboxs-extent-size-has-half-sizes-is-this-expected/33810>\
**Category:** Questions\
**Tags:** intersection\
**Created:** [September 9, 2022, 7:11pm UTC](https://forum.babylonjs.com/t/boundingboxs-extent-size-has-half-sizes-is-this-expected/33810 "2022-09-09T19:11:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuripourre](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yuripourre/32/26111_2.png) [@yuripourre](https://forum.babylonjs.com/u/yuripourre)\
**Post date:** [September 9, 2022, 7:11pm UTC](https://forum.babylonjs.com/t/boundingboxs-extent-size-has-half-sizes-is-this-expected/33810/1 "2022-09-09T19:11:14Z")

</div>

I have a cube with every dimension = 1  
When I call `box.getBoundingInfo().boundingBox.extendSize.x` the result is 0.5, is this expected?

var box = BABYLON.MeshBuilder.CreateBox(“box”, {width: 1, height: 1, depth: 1}, scene);  
var x = box.getBoundingInfo().boundingBox.extendSize.x; // x == 0.5;

> **[Babylon.js Playground](https://playground.babylonjs.com/#IWSW50)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![Takemura](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/takemura/32/25836_2.png) [@Takemura](https://forum.babylonjs.com/u/Takemura)\
**Post date:** [September 9, 2022, 7:16pm UTC](https://forum.babylonjs.com/t/boundingboxs-extent-size-has-half-sizes-is-this-expected/33810/2 "2022-09-09T19:16:51Z")

</div>

Maybe what you looking for is `maximum` or `maximumWorld`, there is also `minimum` to determine whole box measures:

> **[BoundingBox | Babylon.js Documentation](https://doc.babylonjs.com/typedoc/classes/BABYLON.BoundingBox#maximum)**
>
> Class used to store bounding box information \[API\]

`extentSize` seems to be distance from center to mesh shell on x,y,z axis

If your measures are (1,1,1) then your max is (0.5,0.5,0.5) and min is (-0.5,-0.5,-0.5) for local, if you want to use world you need to subtract position

---

<div class="post-metadata">

**Author:** ![yuripourre](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yuripourre/32/26111_2.png) [@yuripourre](https://forum.babylonjs.com/u/yuripourre)\
**Post date:** [September 9, 2022, 7:19pm UTC](https://forum.babylonjs.com/t/boundingboxs-extent-size-has-half-sizes-is-this-expected/33810/3 "2022-09-09T19:19:41Z")

</div>

@Takemura: Thank you, `maximum.x-minimum.x` works.
