Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    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:
    151
    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:
    151
    bump
     
  3. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    6,411
    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:
    151
    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:
    6,411
    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:
    98
    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.