lerp movement unity code example
Example 1: unity lerp position
transform.position = Vector3.Lerp(transform.position, myTargetPosition.position, speed * Time.deltaTime);
Example 2: vector3.lerp
Vector3.Lerp(startMarker.position, endMarker.position, fractionOfJourney);
//Smoothly transition between 2 locations over time, fractionOfJourney is time instance