Search Unity

Particle Collision 2D

Discussion in 'Physics' started by Cristof, Sep 18, 2019.

  1. Cristof

    Cristof

    Joined:
    Jan 19, 2014
    Posts:
    3
    Hi,

    I need clarification. I'm making particle in shuriken system with collision detection. In Collision module i'm setting "Collides With" only with one layer: ParticleCollider but in Project Settings -> Physics 2D in Layer Collision Matrix i've setted off collision for ParticleCollider with any other layer, but collision still occurs. Is this normal ? Do particle system ovverides this settings?
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,478
    Technically it doesn't override it because the Layer Collision Matrix is within the physics module and defines what Collider(2D) can contact other Collider(2D). Particles are not colliders and simply use physics queries in the same way you would where they define their own layer-mask when performing the particle queries.

    So in short, the particle system specifies which layers the colliders must be on when querying particles. It has nothing whatsoever to do with the Layer Collision Matrix.

    Same goes for 2D & 3D.
     
    Cristof likes this.
  3. Cristof

    Cristof

    Joined:
    Jan 19, 2014
    Posts:
    3
    Thank You for reply and clarification!