I'm having problem with locking one object on another. Lets image an turret which always targets flying plane. I come to this solution:
yaw = atan2(z2-z1, x2-x1)
pitch = atan2(y2-y1, z2-z1)
What do you think about such method? Is there any "faster" way without using
Can I achieve same effect with just quaternions operations?