# How babylon sanbox centers the model automatically

**URL:** <https://forum.babylonjs.com/t/how-babylon-sanbox-centers-the-model-automatically/33361>\
**Category:** Tutorials and tips\
**Tags:** documentation, tutorial, camera, babylon\
**Created:** [August 25, 2022, 10:24am UTC](https://forum.babylonjs.com/t/how-babylon-sanbox-centers-the-model-automatically/33361 "2022-08-25T10:24:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nogalo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nogalo/32/120_2.png) [@nogalo](https://forum.babylonjs.com/u/nogalo)\
**Post date:** [August 25, 2022, 11:36am UTC](https://forum.babylonjs.com/t/how-babylon-sanbox-centers-the-model-automatically/33361/2 "2022-08-25T11:36:25Z")

</div>

Hi. I offered a solution to this in two other threads.

This one will lead you to the other one 😃 Try reading through it and you should be able to figure it out. If you have some issue let me know and I will look into it, but solution is pretty much in copy/paste state, so you should be fine. At the end of the thread posted bellow you will find working playground where I implemented the solution, in the thread linked to thread bellow you will find step by step explanation (hopefully) on what’s going on.

@sebavan What do you think about putting this into a out-of-box method into code base, as it is becoming a recurring question and it might be useful to have it. I can try to create a PR for it in couple of days when I find time.

> [@Display model in the center](https://forum.babylonjs.com/t/display-model-in-the-center/32738/16):
>
> Hi. Maybe you could try this approach I previously explained in one of the threads. You can find the playground example bellow the huge comment I made where I explain the process.

---

_[View the full topic](https://forum.babylonjs.com/t/how-babylon-sanbox-centers-the-model-automatically/33361)._
