Want to get point x,y,z (Vector) after scaling

The problem is i want to scale my Box and after scaling i want to show the chaged number in a textbox to scale i use the Gizmo Manager. How can I get x,y,z

    gizmoManager.boundingBoxGizmoEnabled = true;
    gizmoManager.usePointerToAttachGizmos = true;

    gizmoManager.gizmos.boundingBoxGizmo.fixedDragMeshScreenSize = true;
    bounding = BABYLON.BoundingBoxGizmo.MakeNotPickableAndWrapInBoundingBox(containerMesh);

    m_scene.onPointerObservable.add((e) => {
        if (e.type == BABYLON.PointerEventTypes.POINTERDOWN) {

What x, y, z do you want to get? The box’s scaled size?

Yes that’s exactly what I want.

Hi, Not sure I understand this correctly. You are speaking about points and scaling so I don’t know what exactly you want to retrieve. Obviously retrieving the new scaling, position or rotation is quite ez (as in PG below).

Now, may be you are looking for something different, yes? Like retrieving all points (coordinates) of your rescaled box? In case, I’m afraid you will have to rephrase this because I believe nobody here is really sure of what just exactly your question is? (sry).

If it’s size, then getHierarchyBoundingVectors should do the trick :slight_smile: Get scaled sizes | Babylon.js Playground (babylonjs.com)


Yes Thx that was exactly what i serched :smiley:

1 Like