Hi guys, I know should be easy but i’m very fresh on Unity!
I’m in a 2D environment, i have a sun, and i will instance some rays, long and narrow. Rays will spawn randomly with an end inside the sun disc area.
So, how can i set the ray rotation (on z) to make the long axis pointing always the center of sun? I need a temp vector?
I tried some code but results are far to be good.
Thanks to all that will have time and patience to land some tips!