Search Unity

Reset Particle position smoothly

Discussion in 'Visual Effect Graph' started by DRandall, Jun 16, 2020.

  1. DRandall

    DRandall

    Joined:
    Jul 21, 2018
    Posts:
    8
    Hi, Im wondering what I would need to recreate an effect similar to this:



    I am spawning the particles using the sequential position spawner to create the grid and I have a collider to push them out of the way. The part I cant seem to figure out is the resetting of position after. I have tried using set position plugging in getPosition(source) to no avail. Any help would be greatly appreciated!

    Thanks
     
  2. JulienF_Unity

    JulienF_Unity

    Unity Technologies

    Joined:
    Dec 17, 2015
    Posts:
    326
    Hi, you can blend in the update so that particle get back to their initial position smoothly. If you don't have access to the initial position in the update, you can save it in the Init in another attribute (like targetPosition for instance)