Where to find width, depth, height in a mesh once you CreateBox?

I’m following the Getting Started - Chapter 2 - Mesh Placement | Babylon.js Documentation tutorial and I can’t find the height number which I supplied in CreateBox call, I want to use .5 of it to set position.y of the mesh.

The scaling is a Vector3(1,1,1) and does not recall these numbers from CreateBox.

Hi @aleksandrvin

2 possibilities: you keep a variable that hold the height value you used when calling CreateBox
Or you retrieve its bounding box value and deduce its height.

3 Likes