even though this sounds like a simple problem i can’t figure out how to do this. imagine following scenario:
i’ve got several quads moving around in 3d-space and a camera also doing so. now, wherever the camera is in this scene right now, the quads should always face directly towards the camera.
using the LookAt node appeared promising at first but i did not figure out how to achieve what i wanted. in general, the LookAt node did not (intuitively) do what i wanted it to do (but i admit that i could not figure out what the UpVectors are for).
Here is a small patch.
UpVectors are XYZ and set for the Axis showing up. And one is set only. So, this is for Camera to have right orientation - besides where (position) and sight (lookat) you need to know if your head and body is at axis left/right, down/up or forward/backward (XYZ).