Search Issue Tracker

Fixed in 2022.1.X

Fixed in 2021.1.X, 2021.2.X

Votes

0

Found in

2018.4

2019.4

2020.3

2020.3.0f1

2021.1

2021.2

2022.1

Issue ID

1345964

Regression

No

Physics2D.SetLayerCollisionMask only affects the row in the 2D collision matrix

Physics2D

-

How to reproduce:
1. Open the attached project "Physics2D SetLayerCollisionMask Edit Mode Bug.zip"
2. Click Bug > Set Mask
3. Check the 2D collision matrix for MyLayer (Edit > Project Settings > Physics 2D)

Additionally:
1. Open the attached project "Physics2D SetLayerCollisionMask Edit Mode Bug.zip"
2. Open the "SampleScene" scene
3. Press Play, cubes collide and rest on each other (this won't happen if you saved the previous steps)
4. Click Bug > Set Mask
5. Cubes should pass through each other.

Expected result: All of the Checkboxes under MyLayer are unchecked
Actual result: Only the Default - MyLayer checkbox is unchecked

Reproducible with: 2018.4.34f1, 2019.4.28f1, 2020.3.13f1, 2021.1.14f1, 2021.2.0b2, 2022.1.0a1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.