Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Question on particle system orientation (with 2019.4.14f1 LTS)

Discussion in 'General Graphics' started by Erenquin, Nov 13, 2020.

  1. Erenquin

    Erenquin

    Joined:
    Apr 9, 2018
    Posts:
    164
    Hello,
    I have a question on particle system orientation (you guessed it :) )
    I'm not talking about the particle orientation themselves, but the system.

    Although set as billboard and alignment to view, they actually play in the object direction:
    On a side wall they will play like so:
    upload_2020-11-13_15-9-11.png

    On a back wall it will play like so. You do not see the blue axis because in this case it is facing the camera.
    upload_2020-11-13_15-10-44.png

    I would have thought that the game object orientation does not matter and the particle will always play in the direction of the camera.
    I also tried with the default particle system without touching anything.
    It is played in the direction of the game object, not the camera.

    Maybe I have a wrong definition of "billboard" but to me billboard means always facing the camera.

    What did I not understand ?
     
  2. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,273
    The alignment setting you refer to is for the particles, not the system.

    to make the system face the camera you would probably attach its GameObject to the camera, or set its rotation to match the rotation of the camera via script.
     
  3. Erenquin

    Erenquin

    Joined:
    Apr 9, 2018
    Posts:
    164
    Ok I see, thanks for the answer.

    That's more or less what I ended up doing.
    I instantiate the attached game object with the orientation of the projectile.
    I do not use the camera as it may have changed at the time of impact.

    [Edit]
    I realise the solution I describe does not match my question :confused: which was somewhat twofold.
    On one hand I was wondering why the gameobject was not oriented towards the camera, which you answered.
    But my actual need was that the orientation matched the projectile orientation.
    I did not need a continuous billboard effect.
     
    Last edited: Nov 14, 2020