interpolate float to move to set position code example
Example: unity lerp position
transform.position = Vector3.Lerp(transform.position, myTargetPosition.position, speed * Time.deltaTime);
transform.position = Vector3.Lerp(transform.position, myTargetPosition.position, speed * Time.deltaTime);