Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.Close
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.Close
The Layer Collision Matrix defines which Layers can and cannot contact other Layers. Addition Layer includes and excludes can be made per Collider2D or all Collider2D attached to a specific Rigidbody2D. Any contact involves two different Collider2D instances. Unfortunately this can result in one Collider2D deciding that it should contact the other Collider2D but the other Collider2D deciding it should not. There are rules however in determining and ultimately arbitrating the final decision on whether a contact should be created or not.
The rules for a making a decision for contact between two Collider2D, referred to here as A and B, are made in the following order: