Gizmo Appears Upside Down on Imported GLB Objects

I’m utilizing the Gizmo tool to manipulate simple shapes and imported GLB files in my project. While the Gizmo aligns correctly with the cube mesh, it appears upside down when attached to my imported GLB object.

Could there be a specific reason for this behavior, and what steps can I take to correct the Gizmo orientation for GLB objects?

As mentioned in the docs:

By default gizmo orientation is in local space so it will be rotated to match the rotation of the object that it is attached to. To change to world orientation, the updateGizmoRotationToMatchAttachedMesh property can be set to false

This is my current setup with the problem;

positionGizmoEnabled true
rotationGizmoEnabled true
gizmos.rotationGizmo.updateGizmoRotationToMatchAttachedMesh false
gizmos.rotationGizmo.updateGizmoPositionToMatchAttachedMesh true
gizmos.positionGizmo.updateGizmoRotationToMatchAttachedMesh false

This is because GLB is a right-handed coordinate system, and Babylon is a left-handed coordinate system by default.


Thanks that was it!

1 Like