unity make object face direction of travel code example Example: unity face direction of movement transform.rotation = Quaternion.LookRotation(dir);