rotation vector3 in unity code example
Example 1: unity rotate towards
Quaternion.RotateTowards(Quaternion from, Quaternion to, float maxDegreesDelta);
Example 2: unity rotate around axis
transform.Rotate(axis, degrees);
Quaternion.RotateTowards(Quaternion from, Quaternion to, float maxDegreesDelta);
transform.Rotate(axis, degrees);