GLB models error with X axis

I have this error, the local axis are inverted, only in GLB/GLTF files…
I tried:

Make mirror in blender.

_mesh.setPivotPoint(new BABYLON.Vector3(0, 0, 0), BABYLON.Space.LOCAL);
_mesh.computeWorldMatrix(true);

with OBJ works, BUT i need work with GLB…


*In video, on click over a mesh, it must move to X+

** i can not use : scene.useRightHandedSystem = true;

GLB loaded in a Left handed scene will get a negative scale on their root object.

On thing you can do is to call my obj.setParent(null) to remove the parent link and then call mesh.bakeCurrentTransformIntoVertices()

3 Likes