Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

how to ignore specified layer in physics

Discussion in 'Project Tiny' started by kuailaiwanli, Aug 9, 2021.

  1. kuailaiwanli

    kuailaiwanli

    Joined:
    Apr 22, 2013
    Posts:
    47
    A specified layer ( Layer 8 ).
    How to collide without it?
     
    Last edited: Aug 9, 2021
  2. GilCat

    GilCat

    Joined:
    Sep 21, 2013
    Posts:
    676
    You should be able to set your collision matrix the same way you would do it in "Legacy" Unity. The conversion systems will take care of setting the proper layers (CollisionFilter) for each collider.
    That process happens in LegacyColliderConversionSystem and you can take a look at how it happens.