Hi, every one! I’m currently working on a medical simulation application.
What I need to do is load the human vascular mesh and generate a mesh collider based on this mesh. Then some kind of medical instrument (like a wire) is imported to the scene, marching inside the vascular mesh. The purpose is to simulate the deformation of this wire-like medical instrument when colliding with vascular mesh. I don’t think the build-in physics system will work in my case. So I have to implement all by myself.
And here comes the problem. As the manual says
“Collision meshes use backface culling. If an object collides with a mesh that will be backface culled graphically it will also not collide with it physically.”
But all I need is disable this backface culling. Is there any way to do that?
Maybe I can duplicates this mesh and reverse the winding of the face and use this duplication to construct the mesh collider. But it seems a waste of memory.
As far as I know, there’s no way of disabling backface culling on collision meshes. Your only chance is to make a duplicate of the mesh with reversed normals, and use both as collision meshes at the same time.
You might try to enable the “Convex” mode of MeshCollider. This does much more than just disabling back face culling, but might work under (un)certain conditions.
The documentation is a bit vague about this Convex feature.