Search Unity

Question How to get local vectors for circle in VFX Graph

Discussion in 'Visual Effect Graph' started by raeinforce, Oct 21, 2022.

  1. raeinforce

    raeinforce

    Joined:
    Feb 15, 2019
    Posts:
    6
    One more question :)
    So, I made red partickles to rotate around centre of the circle (aroun Z axis)
    How to get local forward axis?
    upload_2022-10-21_14-46-26.png upload_2022-10-21_16-7-34.png
    and when I change circle rotation this happend
    upload_2022-10-21_16-8-44.png
    upload_2022-10-21_16-8-53.png
     
  2. OrsonFavrel

    OrsonFavrel

    Unity Technologies

    Joined:
    Jul 25, 2022
    Posts:
    194
    They might be better ways, but I got headache and it's the only thing that I can think of...
    By default the "Circle Shape" is Facing the local Z-axis of the "VFX GameObject".

    So You use a new "transform" to drive both the "Circle Transform" and also a local (0,0,1) vector that will be used
    to drive the Rotation Axis.

    upload_2022-10-21_17-52-6.png
    By selecting this new "Transform" block on the left, you 'll still able to manipulate the Position/orientation/scale of the Arc Circle in the Scene.

    Unity_CfciJBQy9P.gif

    Hope that it helps and answer your question.
    Good day.
     
    raeinforce likes this.