I'm tweening several game objects (with LeanTween) and want the time to be shorter if the distance between distance points a and b are shorter. I used to write my own forumla for it years ago but forgot it (duh). Can somebody give me a hint? And is Mathf.Lerp
(or similar) of any use here? If I use the following, it does exactly the opposite (time gets longer the shorter the distance, which is what I don't want) ..
float time = Mathf.Lerp(source.transform.position.y, target.transform.position.y, Time.time);