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 apply layers to physics?

Discussion in 'Project Tiny' started by MUGIK, Dec 6, 2018.

  1. MUGIK

    MUGIK

    Joined:
    Jul 2, 2015
    Posts:
    481
    I created layers called 'Ball' and 'Block'. I want Ball collide with Block, but not Ball with Ball. What should I do?
    UPD:
    I tried Project Settings>Physics 2D but with no luck:
    upload_2018-12-22_13-49-13.png

    Scene in debug view:
    upload_2018-12-22_13-48-55.png
     
    Last edited: Dec 22, 2018
  2. MUGIK

    MUGIK

    Joined:
    Jul 2, 2015
    Posts:
    481
    bump
     
  3. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,770
    First, you assign relevant layers. Then in physics settings, if I am correct, there is collision matrix. It uses pairs of layers, to match, which collisions are permitted.

    So lets say you got balls and boxes layers. In matrix you need untick balls-balls pair.
     
  4. MUGIK

    MUGIK

    Joined:
    Jul 2, 2015
    Posts:
    481
    This doesn't work.
    Balls still collide each other.
    upload_2018-12-22_13-47-29.png
     
  5. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,770
    Hmm, interesting.
    I would expect to work.

    May I ask, which version of Unity do you use? Your UI fonts looks odd-ish.

    Oh, and again, my wrong sorry, since this is Project Tiny, there may be different approaches to things, which I am not familiar with.
     
  6. raymondyunity

    raymondyunity

    Unity Technologies

    Joined:
    Apr 30, 2018
    Posts:
    122
    Hey,

    This is not supported yet. You can attempt to apply your own physics layering system but it may get quite complex.

    The project settings that affect Tiny projects are the settings under the Tiny section.
     
    Antypodish likes this.