Hello everyone.
I need to create a billboard effect, so an object always faces the camera. Found this code to do so:
transform.LookAt(transform.position + m_Camera.transform.rotation * Vector3.forward);
Works in principle. Problem is, that the gameobject also follows when the camera is rotated around the z-axis, which I fail to find a way to prevent. Looks like I’m missing something.
The sign should not be rotated relative to the pole.
Any tips are welcome.
Thanks,
Michael
