Colliders between 2 objects

I need a way to have two objects be placed near each other, and generate a collider between them. Any ideas?

I think You can shoot invisible object to check space between two objects and find colliders. But I don’t think that is very good idea :(.

P.S My English isn’t very good, so you may don’t understand something. :wink: