Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Collision matrix doesn't work in 2D?

Discussion in '2D' started by WARdd, Nov 29, 2020.

  1. WARdd

    WARdd

    Joined:
    Aug 10, 2015
    Posts:
    29
    I've got a scene setup where I want to turn off collisions between 2D colliders in the "structure layer" I've got everything set up and double checked that it works in 3D, though it doesn't in 2D. The colliders are still hitting eachother.

    This seems too basic to be a bug, but I can't see anything I'm doing wrong either. Any help?

     
  2. ed_s

    ed_s

    Unity Technologies

    Joined:
    Apr 17, 2015
    Posts:
    165
    Are you using the Layer Collision Matrix in the Physics settings or the Physics 2D settings? (your screenshot looks like its Physics) Try using the Physics 2D settings for your 2D collisions.
     
    MelvMay likes this.
  3. WARdd

    WARdd

    Joined:
    Aug 10, 2015
    Posts:
    29
    You're right, I didn't notice 2D had its own physics settings, I assumed they would be the same. Thanks!
     
  4. ed_s

    ed_s

    Unity Technologies

    Joined:
    Apr 17, 2015
    Posts:
    165
    Awesome; glad it works now :)