unity lerp vector3 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
Example 3: vector3.Lerp unity
//public static Vector3 Lerp(Vector3 a, Vector3 b, float t);
Vector3 pos = Vector3.Lerp(a,b,t);