unity rotate to code example
Example 1: how to rotate object unity
public Transform Position; // make reference in inspector
Position.Rotate(x, y, z);
Example 2: unity rotate towards
Quaternion.RotateTowards(Quaternion from, Quaternion to, float maxDegreesDelta);