Search Unity

New to VFX Graph- How to make particles shoot out opposite way of objects velocity?

Discussion in 'Visual Effect Graph' started by notMateo, Apr 20, 2022.

  1. notMateo

    notMateo

    Joined:
    Mar 2, 2018
    Posts:
    36
    I have an effect I'm trying to achieve, where particles fly out the opposite way of the Game Object's move direction. How can I do this in VFX Graph? The only thing I've figured out is that I need the Set Velocity from direction and Speed (New Direction) node. I just don't know what to put into the Direction.
     
  2. koirat

    koirat

    Joined:
    Jul 7, 2012
    Posts:
    2,073
    First you need to pass game object move direction to VFX.
    If you don't know how to do it you should start with tutorials.
     
  3. notMateo

    notMateo

    Joined:
    Mar 2, 2018
    Posts:
    36
    Oh is that the best way to do it? With a script outside of the VFX Graph? I thought there would be a way within VFX Graph. I know how to pass information into VFX Graph, I just usually save that as a last resort.
     
  4. Qriva

    Qriva

    Joined:
    Jun 30, 2019
    Posts:
    1,307