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).
As far as I know, LookAt node is for camera use.
You can get your desired result with the transform invers node, in a clever combination somehow. Check its help file for description.
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).
thanks for your quick and helpful answer. actually i tried the invers node before using lookat but did not succeed (yeah, the transform order does matter :)
i achieved now what i wanted to do - if anybody is interested, here is the patch.