Mesh axis vs. world axis

Hello,

if i import a mesh to babylonjs, the Mesh axis are not the same like world axis.

How fix that?

Blender:

Why would you need them to be the same ?

Also I think in blender you can specify your scene axis ?

1 Like

Ok tank you.

I have activate gizmo on Mesh:

            gizmoManager.value = new BABYLON.GizmoManager(scene.value);
            gizmoManager.value.positionGizmoEnabled = true;
            gizmoManager.value.usePointerToAttachGizmos = false;
            gizmoManager.value.attachToMesh(mesh);
            gizmoManager.value.gizmos.positionGizmo.xGizmo.dragBehavior.onDragObservable.clear();
            gizmoManager.value.gizmos.positionGizmo.yGizmo.dragBehavior.onDragObservable.clear();
            gizmoManager.value.gizmos.positionGizmo.zGizmo.dragBehavior.onDragObservable.clear();

How i can remove gizmo?

In Blender, if you want to loose rotation informations, and so get your object axys equal to world axys, you can apply rotation
r

2 Likes

If you pass null to attachToMesh it will detach from the mesh. Here’s a quick example that detaches after 1 second. :slight_smile: