Hello. Everything is in the question ![]()
However, I would like to explain what I am trying to do. I am working on a project in which players can slice objects. It works as expected, splitting meshes in parts and adding new meshes colliders. The main problem - the player passes through new objects when he walks inside them. As an example : slicing a cube, we have two hollow rectangles. Then the player can go inside them and unfortunately, the collider works outside. So I would like a double-sided collider. Is there a way to do that? Thank you for your help ++
Your script will need to make a mesh collider with an interior. Or you can enable ‘Queries Hit Backfaces’ in the Physics settings and then when the player attempts to move your movement script can do a CapsuleCast or a rigidbody SweepTest to detect if there’s anything ahead and stop the player.
Seems the right answer. I will take a look at this possibilty. Thank you ++