unity get the closest side to which the vector is rotated code example
Example: unity rotate towards
Quaternion.RotateTowards(Quaternion from, Quaternion to, float maxDegreesDelta);
Quaternion.RotateTowards(Quaternion from, Quaternion to, float maxDegreesDelta);