Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

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.