transform.rotation = Quaternion.LookRotation(
Vector3.RotateTowards(
transform.forward,
target.position - transform.position,
turnSpeed * Time.deltaTime,
0f
)
);
Rotation in Unity
Bookmark the permalink.