So I have this circle with two images.
The red image is just a rectangle that stays still.
The white image is a long rectangle that rotates in the circle.
I have a button and every time i click that button I want to check if the white image is inside/overlaps/touches the red image. I tried a lot of things (checking if the angels/rotations are close; checking the 2d rigidbody; checking colliders; checking the distance between positions) but nothing seems to work.
Physics doesn’t check if images are in contact, it uses Colliders so add a Collider for the “Red” area and a Collider for the “White” area attached to a Rigidbody2D in the center of the ring and rotate the Rigidbody2D. When the simulation runs you’ll get a callback saying it’s in contact or you can ask if it’s touching with any of the “IsTouching” method.
Alternately, you can easily detect this without any physics because you know it’ll be in a contact when it’s in at a specific angle range (arc). No physics required.