I’m wanting to perform manual overlap tests of scenery. In my test scene which is random closed-rectangle walls, I have a tile-map that I use with a composite collider. Without enabling the composite, the collider works as expected, allowing me to find the closest point on it and reporting overlaps. Enabling the use of the composite collider, Physics2D calls fail with any results. My closest point test reports the point I’m testing for and I don’t get any overlaps reported.
On the left side, we see the tilemap collider; the red dot shows the closest point to the agent (under the camera icon). Console shows overlaps results of the agent with the scenery and the scenery with the agent (tilemapcollider2d.overlap(…)).
On the right, the the agent is testing positive even in space. The compositecollider doesn’t report any overlaps with the agent.