Collision2D circle invert situation?

Hi all,

I have a question an I have Googled it but could not find a good answer for my question. Think that I have a circle and that has a Collider2D inside that circle. You can imagine a fly is going to fly but not be able to go out from that circle. That means I want my collider to border inside of the circle not outside. But when I try to do this, always my object is forced to out of the circle.

Is there any practical way me to supply my object inside a circle area in 2D sprites. I modeled the situation according to 3D for my temporary solution but, because I could not succedded what I want, I still want to learn to achieve my goal and learn it trick.

Thanks for your help,

Have you tried approximating a ring by arranging boxes in a circle?

You could create a script that clamps the position within a radius. Do you need physics colliders for this?