Find direction from vectors?

Kinda worked, but the rotation changes a bit based on the distance as well. Is there a way to avoid that?
Let me know if it makes sense