How can I drag and drop 2D objects with the mouse without passing through other objects.

I know how to drag and drop objects, but when I do, they just pass through other objects. I know that colliders are just things for rigid bodies to interact with, but my objects cannot have rigid bodies. Help!

I figured it out, all I had to do was prevent the objects from getting to close to each other in the first place.