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