MoveTowards - 등속 이동
Vector3 target = new Vector3(5,5,5);
transform.posision = Vector3.MoveTowards(transform.posision, target, 2f);
SmoothDamp - 부드러운 감속 이동
Vector3 target = new Vector3(5,5,5);
Vector3 velo = vector3.zero;
transform.posision = Vector3.SmoothDamp(transform.posision, target, ref velo, 0.5f);
Lerp - 선형보간
SmoothDamp
보다 감속 시간이 길다.Vector3 target = new Vector3(5,5,5);
transform.posision = Vector3.Lerp(transform.posision, target, 1f);
SLerp - 구면 선형 보간
Vector3 target = new Vector3(5,5,5);
transform.posision = Vector3.SLerp(transform.posision, target, 1f);