I think it’s relative to the mesh being double sided. Not the material but I think all the triangles are doubled?
I checked that with the inspector. Setting the material front sided faces didn’t change anything.
Try again with single sided faces and let me know if it works.
@Cedric Hey thanks for the response! Sadly, this is not the case. I enabled backface culling in the material and used a “merge by distance” in Blender, it did remove multiple vertices but the problem still persists.
I did some more fiddling around and found that scene.useRightHandedSystem = true; solves the random collision issue, so the collision might be a problem because the Z scale of the root is -1 because of the GLTF import. movewithcollisions | Babylon.js Playground (babylonjs.com)
It still feels like the collider boxes are smaller than the meshes even though they are scale 1.
The issue is actually the collider(player cube mesh) is still attached to the root (with negative scale)
if you set its root to null, then everything is fine.
Hey, sorry for the late response. I was on holiday
When setting meshes parents to null definitely solves the issue.
I do think importing GLTF meshes in a negative scale is a fundamental problem, had multiple issues with it over the years. But I do not know the philosophy behind it.
Thanks for the explanation @carolhmj and even though it might take more time to load, I’d rather have something like vertices recalculated instead of applying this negative scale.