Hi, just begin to explore babylon.js.
Basically, I want to load mesh from gltf, and resize it according to its height.
A gltf file contains one root mesh which composed of some children meshes.
My solution is to find the root mesh by check if it has no parent, then apply scaling, it works.
However, I have to pick the correct factor by manually inspecting the mesh, not very convenient.
The better way is that get the height of mesh, say it’s 200, and expected height is 10, and the factor now is 10 / 200 = 0.05.
The problem is, after doing many researches on google, I still don’t know how to get the height of mesh.
I tried to use getBoundingInfo, but it gives me all zero result, here is a PG to show what I meant https://playground.babylonjs.com/#U5SSCN#20
Thanks in advance.