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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

VFX Graph rotate emitter angle

Discussion in 'Graphics Experimental Previews' started by protoben, May 13, 2019.

  1. protoben

    protoben

    Joined:
    Nov 11, 2013
    Posts:
    39
    Im trying to create a jet stream of particles that shoot out of the back of a spaceship but can't find an equivalent of angle or rotation for the emitter.

    In shurken, I would have put the particle system inside the spaceship and if the spaceship game object rotated the emitter would have rotated changing the angle of emission.

    I dont mind having to script this by changing the position x,y,z and the angle in via code but I cant find an angle function. Does such a block exist in the VFX graph? To rephrase, can you rotate the direction the particles are coming out so as the spaceship rotates, the particle stream rotates?

    On a related note, the project Im on started with has it's Y and Z swapped. I can not figure out a way to rotate the block Position(circle) to match the rest of the objects in this project.

    thanks
     
  2. protoben

    protoben

    Joined:
    Nov 11, 2013
    Posts:
    39
    a solution was found for the first question. you can use a Add Velocity block and set the Direction to "L" which will then Add velocity relative to the parent object.