As shown in the picture, I would like to get the polygon of the intersection area of two polygon colliders ("detection colliders") to use it as a third collider ("intersection area collider").
The player will only collide with the intersection area collider and I plan to move and enable / disable the two detection colliders at runtime, which would dynamically change the polygon of the intersection area collider / disable or enable it.
What would be a good approach for this?
To better test this I would like to display the collider's shapes at runtime. What is the best method for doing this?
Thanks in advance.