Vectors angle

Say I have two 3d vectors, how do I get the 3 separate angles between the two positions?

For example I want the second object to always be pointing towards the first!

Here’s a little something to point / aim one object at another… Say like a gun turret.

angles_01_01.blend

Now, when I go to apply the previous ‘working’ method to a camera I get errors?

third_02_02.blend

  • I’ll probably have parent issues, but…

EDIT:

I’m after the camera pointing at the empty whilst rotating using Q and W, as well as whilst moving using all the arrow keys.