Search Unity

Question Particle System and Collisions

Discussion in 'Physics' started by YeahYeah11, Apr 23, 2023.

  1. YeahYeah11

    YeahYeah11

    Joined:
    Jul 21, 2020
    Posts:
    11
    Hi, i have this particle system that emits fire particles, the particles collides with characters and in this characters i have a script with OnParticleCollision that shows a debug message when its called:

    Example1.png


    My problem is that when the fire particles collides they doesnt pass trough the character. If i set the RigidBody of the character to isTrigger the particles pass trough but the OnParticleCollision function doesnt get called: Example2.png Example3.png

    No messages received. there is my Physics settings too, so how can i make it work?
     
    Last edited: Apr 24, 2023
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,491
  3. YeahYeah11

    YeahYeah11

    Joined:
    Jul 21, 2020
    Posts:
    11
  4. YeahYeah11

    YeahYeah11

    Joined:
    Jul 21, 2020
    Posts:
    11
  5. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,491
  6. YeahYeah11

    YeahYeah11

    Joined:
    Jul 21, 2020
    Posts:
    11
    OnParticleTrigger only works in the particles, not if i call it from the character, i instead created another capsule collider that gets deactivated when one particle of fire collides with it so the other particles can continue pass trough, its a workoround but if someone has the same problem i hope my solution can help.
     
  7. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,491
    I have no idea what you mean here but whatever works for you is fine.