I'm not sure if this function can achieve what I'm after. Actually, I want to rotate Object A (Pic A) to face Object B (Pic B) without flipping 180 degrees (Pic. C) when Object B moving overhead of Object A.
Yes, it does some tricky things, but I've implemented it on a user's request - I have no real life example from a game for it. An example where this function would be used were an object that spins with precession.