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.

Particle Equidistant Rotation

Discussion in 'Visual Effect Graph' started by Tibsterx, Mar 9, 2021.

  1. Tibsterx

    Tibsterx

    Joined:
    Mar 4, 2020
    Posts:
    9
    Hey, maybe I'm just missing something stupid here, but I was wondering...
    If I wanted six particles to spawn in a single burst and shoot outwards from the center, how would I do that?
    I'd like them to each be 60 degrees apart and to have the same life time and speed as they travel out. Thanks.
     
  2. Vita-

    Vita-

    Unity Technologies

    Joined:
    Jul 2, 2019
    Posts:
    84
    Hi, here's simple graph that does the trick. Detailed explanation about sequential positioning can be found here. If you have any questions, let me know.
     

    Attached Files:

  3. Tibsterx

    Tibsterx

    Joined:
    Mar 4, 2020
    Posts:
    9
    Thanks so much! Just what I was looking for.
     
  4. Tibsterx

    Tibsterx

    Joined:
    Mar 4, 2020
    Posts:
    9
    Hey, so now what would be the best way to orient the particles angle with the direction they are are travelling in? I don't think the orient along velocity will work here. I'm guessing the best way would be to sequentially set the angle to be 360/num of Particles, but I'm not sure how to do that.
     
    Last edited: Mar 15, 2021
  5. Vita-

    Vita-

    Unity Technologies

    Joined:
    Jul 2, 2019
    Posts:
    84
    Hya @Tibsterx, I am pretty sure that Orient: Look At Position will do the job. I've attached gif as a showcase, is that what you are looking for?
     

    Attached Files:

  6. Tibsterx

    Tibsterx

    Joined:
    Mar 4, 2020
    Posts:
    9
    @VitaSkr. Nah, that's not quite what I'm looking for. I would like the particles to still be facing the camera, I would just like them to each have a different z rotation. Like I would like the green line on the default particle to be facing out towards the perimeter of the circle. Thanks
     
    Last edited: Mar 17, 2021
  7. Vita-

    Vita-

    Unity Technologies

    Joined:
    Jul 2, 2019
    Posts:
    84
    Hi @Tibsterx. A-ha, got it! Something like this?
     

    Attached Files:

  8. Tibsterx

    Tibsterx

    Joined:
    Mar 4, 2020
    Posts:
    9
    Perfect! Thank you so much! That should be all I need now!
     
    Vita- likes this.
  9. WhittS3

    WhittS3

    Joined:
    Sep 10, 2018
    Posts:
    2
    Exactly what I was looking for too, thank you Vita!
     
    Vita- likes this.
unityunity