unity rotate y towards point code example
Example 1: unity rotate towards
Quaternion.RotateTowards(Quaternion from, Quaternion to, float maxDegreesDelta);
Example 2: unity rotate quaternion around axis
RoatationVar = Quaternion.Euler(Vector3.up) * camera.rotation;