Parallel LookAt

Hi
I’m not experienced in Math programming in unity and have a problem in Unity LookAt function.
I’m used simple LookAt function to face lens flare textures to camera. But in AAA game you can see lens flares are face to camera in parallel.
How can i do that in unity?
Thank you.

You need to use the version of LookAt that also specifies the up vector, like this:

transform.LookAt(camera.transform.position, Vector3.up);

Thank you. But nothing changed.

Just set the rotation of flare to the rotation of camera.
If needed rotate 180 degrees around local Y

1 Like

https://www.youtube.com/watch?v=M3_9Pn5t0OY