I have problems with few different imported objects. My camera (ellipsoid) sometimes just goes through the object very slowly and my camera gets stuck in it. I tried both checkCollision and physic impostors, but nothing seems to work.
-Are there any specific requirements how object should be made, that collision works without any problem?
-Is there any way to set (calculate) collision box of objects?
***Playground - Lines 39-50: https://www.babylonjs-playground.com/#PVAC9F#17
BABYLON.SceneLoader.ImportMeshAsync("", "https://firebasestorage.googleapis.com/v0/b/universal-ar.appspot.com/o/stones_wall.glb?alt=media&token=13d89eb7-e4bf-4ab0-b408-ecdc4d2ad602", "", scene).then((result) => {
var birds = result.meshes[0];
birds.scaling = new BABYLON.Vector3(5, 5, 5);
birds.position = new BABYLON.Vector3(-4, -10, 0);
for (let i = 0; i < result.meshes.length; i++) {
var meshAll = result.meshes[i]
meshAll.checkCollisions = true;
meshAll.physicsImpostor = new BABYLON.PhysicsImpostor(meshAll, BABYLON.PhysicsImpostor.MeshImpostor, { mass: 0, friction: 1 }, scene);
}
});