unity rotate around gameobject towards mouse code example
Example: unity rotate towards
Quaternion.RotateTowards(Quaternion from, Quaternion to, float maxDegreesDelta);
Quaternion.RotateTowards(Quaternion from, Quaternion to, float maxDegreesDelta);