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.
  2. Dismiss Notice

VFX Graph particles world rotation

Discussion in 'Visual Effect Graph' started by coldcash14, Oct 25, 2020.

  1. coldcash14

    coldcash14

    Joined:
    Jun 7, 2019
    Posts:
    4
    Hi, the attached should explain everything

    What I basically want: A particle that spawns in the VFXGraph's GameObject position and rotation, and then stay there, as the GameObject moves away.

    Problem: Can be done for position, can't be done for angle (rotation)
    I have tried everything, I am unable to figure out why I can't achieve this.
    I basically concluded that I just cannot access the GameObject's angle in the VFX Graph

    If nothing works within the graph, plan B is setting the angle by a parameter with code.
    I hope you can help me or at least explain why this can't work.
    Thanks
     

    Attached Files:

    Spoonfishlee likes this.
  2. Spoonfishlee

    Spoonfishlee

    Joined:
    Mar 21, 2016
    Posts:
    50
    I'm struggling with this as well. I've been trying for about three days, but I can only get either rotation or position. Never both. Some real functionality for rotating an emitter would be fantastic.
     
  3. Spoonfishlee

    Spoonfishlee

    Joined:
    Mar 21, 2016
    Posts:
    50
    Okay, here's what I got that will do the trick for me. But I can't control the angle of the circle with the gameobject. I have to do it with an exposed Vector3. Imperfect, but fine for me.

    upload_2020-10-31_23-20-29.png
     

    Attached Files:

    coldcash14 likes this.
  4. coldcash14

    coldcash14

    Joined:
    Jun 7, 2019
    Posts:
    4
    Sorry I forgot about this thread. But I managed to solve this similarly to you, an exposed property for the rotation.
     
  5. almog1752

    almog1752

    Joined:
    Aug 8, 2020
    Posts:
    1
    hi what worked for me is to orient along velocity on the out put partical
     
    BigRookGames likes this.
  6. xfix

    xfix

    Joined:
    Jul 12, 2021
    Posts:
    3
    Use rotate!
     
  7. BRGames_

    BRGames_

    Joined:
    Jun 24, 2021
    Posts:
    18
    Any chance to have more info on it?