Create a cube according to the bounding box; The position of the created cube is inconsistent with the bounding box。

I get the bounding box and create a cube according to the bounding box; But the position of the cube is inconsistent with the original object.
(https://playground.babylonjs.com/#4F33I3#592)

You created the bounding box according to the sphere’s dimensions, but all objects are created on (0,0,0), so you have to set their positions https://playground.babylonjs.com/#4F33I3#594

3 Likes