# Wrong values on boundingBox?

**URL:** <https://forum.babylonjs.com/t/wrong-values-on-boundingbox/30273>\
**Category:** Bugs\
**Created:** [May 11, 2022, 9:23am UTC](https://forum.babylonjs.com/t/wrong-values-on-boundingbox/30273 "2022-05-11T09:23:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![VerandaLouis](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/verandalouis/32/19395_2.png) [@VerandaLouis](https://forum.babylonjs.com/u/VerandaLouis)\
**Post date:** [May 11, 2022, 9:23am UTC](https://forum.babylonjs.com/t/wrong-values-on-boundingbox/30273/1 "2022-05-11T09:23:20Z")

</div>

Hi,

I was trying to reposition an instance by his boundingBox informations but i found an issue : the boudingBox.maximumWorld and boundingBox.maximum are equal, same for boudingBox.minimumWorld and boudingBox.minimum, BUT… when i check the boundingBox the values are correct 🤷‍♂️  
It’s not all, i made the following PG to example, at the first click on play the values on console.log was correct, i clicked a second times on play and it still worked correctly then i accidentaly click on the browser “reload page”, i checjed the console and the values where not correct any more…  
moreover the same thing happened on my project before, everything worked fine the first times but for some reason that i don’t know at some point it no longer worked.

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

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/3/e/3e1701eb0bce5e1d1c82d18acdf389b350a0288b.png)

So maybe at first trys the values will be correct, try to click on play button a second time and if still work try to reaload the page.

please help 😢

---

<div class="post-metadata">

**Author:** ![VerandaLouis](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/verandalouis/32/19395_2.png) [@VerandaLouis](https://forum.babylonjs.com/u/VerandaLouis)\
**Post date:** [May 11, 2022, 9:29am UTC](https://forum.babylonjs.com/t/wrong-values-on-boundingbox/30273/2 "2022-05-11T09:29:53Z")

</div>

yup, i confirm that if you open the PG and check the console it’s work, click on the play button and you will see the problem.

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [May 11, 2022, 10:11am UTC](https://forum.babylonjs.com/t/wrong-values-on-boundingbox/30273/3 "2022-05-11T10:11:56Z")

</div>

Does this solve the issue?

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

---

<div class="post-metadata">

**Author:** ![VerandaLouis](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/verandalouis/32/19395_2.png) [@VerandaLouis](https://forum.babylonjs.com/u/VerandaLouis)\
**Post date:** [May 11, 2022, 12:06pm UTC](https://forum.babylonjs.com/t/wrong-values-on-boundingbox/30273/4 "2022-05-11T12:06:45Z")

</div>

oh… yes this solve the issue, so that’s not a bug, just the matrix need to be updated.

thank’s for help, end sorry cause it’s was not a bug 😕

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [May 11, 2022, 12:16pm UTC](https://forum.babylonjs.com/t/wrong-values-on-boundingbox/30273/5 "2022-05-11T12:16:14Z")

</div>

The matrix is being updated the first time the mesh was rendered. If you need it before (i.e. - right after the mesh was created) you will need to update it yourself
