I'm working in unity and I have the following problem : Suppose you have an object that's very similar to say the intersection of say the corner of a cube and a ball, and you want a nice collider for this object.
First option is to simply use the mesh collider option - but this is apparently not very efficient, and if for example the sphere is very smooth, there might be a lot of polygons and that could be a problem.
Second, you could just fill the object with various simple colliders.
However, both of the above options seem unnecessarily complicated - it would seem natural to me to somehow work with both colliders - the sphere collider and the cube collider. To determine if the object is touching something, the requirement is that both the cube and sphere collider are touching something, not just one of them.
I don't know how the actual collision checks work, but I would expect that say in the second option I wrote above (placing a few small colliders inside the object), a collision check sees if any of the colliders is touching a collider of some other object - so there is an option for "union" type of collision check (see if any of the colliders are touching something). Similarly, I would expect there would be an option of checking whether both the colliders are touching something, but I'm not aware of it.
Either way, I would appreciate ideas on how to implement a good collider for this problem, and whether there's a way to implement it by the way I described, using the "intersection" of two colliders.