How do I find if a 2D collider is overlapping with another 2D collider, rather than just touching? I know I can use oncollisionenter and oncollisionexit but I can’t find anything that would tell me only if two 2drigidbodies are overlapping, not when they are touching.
These calls can be used to tell you if they are overlapping/separated and by how much:
Physics2D.Distance
Rigidbody2D.Distance
Collider2D.Distance
They all return a ColliderDistance2D.
1 Like