here’s playground I made Babylon.js Playground
How can it be changed to show the volume of the box when it’s being scaled + when I’m scalling the volume doesn’t change…
When you scale, it’s the
scaling property of the mesh that is updated, not the bounding box extrema.
You should do something like this to compute the volume:
const meshVolume = x * y * z * mesh.scaling.x * mesh.scaling.y * mesh.scaling.z;
Thank you guys!
I’m just not wondering now if there’s event listener for gizmo scalling. I can’t find it.