I have this study project: GitHub - Alecell/catrun
On this file I’m generating meshes automatically and checking if player intersects with the mesh right here, when I use babylon generated meshes with MeshBuilder it works as expected, but when I use imported glb meshes it don’t.
I’ve read a lot of questions about that kind of issue but no solutions works on my case, I’ve tried:
- A simple cube created on blender (the default when open blender app)
- Check the pivot of the mesh
- moveWithCollision
- Apply collision on the meshes:
myMesh.meshes[0].checkCollisions = true;
myMesh.meshes.forEach(mesh => {
mesh.checkCollisions = true;
})
Does anyone know whats happening?
And also is there something like a “box collider” just like unity does to simplify complex collision detection?