Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Resolved Particle collision spawn another particle

Discussion in 'Visual Effect Graph' started by plehannowww, Apr 18, 2022.

  1. plehannowww

    plehannowww

    Joined:
    Nov 10, 2020
    Posts:
    10
    Hello all! I have blood effect, that throwing forward. It spawn another particle when its collide with plane. As you can see on giff, new particle is always the same with horizontal and vertical plane. Is there any way to change behaviour or spawn another particle when colliding vertical plane ? upload_2022-4-18_15-57-51.gif
    upload_2022-4-18_16-3-25.png
     
  2. plehannowww

    plehannowww

    Joined:
    Nov 10, 2020
    Posts:
    10
    Is it possible, guys? :(
     
  3. VladVNeykov

    VladVNeykov

    Unity Technologies

    Joined:
    Sep 16, 2016
    Posts:
    549
    Try using Decal outputs in your Blood spots GPU event system:


    It should give you something like this:


    If your decal is looking strange, you can also try using different Orient blocks and/or adding an Add Rotation in the output and rotating the particles until the decal is aligned to the surface you want.
     

    Attached Files:

    plehannowww likes this.
  4. plehannowww

    plehannowww

    Joined:
    Nov 10, 2020
    Posts:
    10
    I also did it with "compare" block. If dying particle too high, then spawn 1 particle that has another angle. Else - spawn 0 particle with this angle. It works, but dont think it`s the good way to use compare statement because of GPU. upload_2022-4-21_11-41-32.png upload_2022-4-21_11-42-7.png
     
    Last edited: Apr 21, 2022