unity rotate object in direction of a target code example
Example: unity rotate towards
Quaternion.RotateTowards(Quaternion from, Quaternion to, float maxDegreesDelta);
Quaternion.RotateTowards(Quaternion from, Quaternion to, float maxDegreesDelta);