I'm trying to make an indicator object appear higher up in the sky the farther away a player is, up to a certain distance.
Basically, if the player is < 5 distance away, the object's height should be 1. If the player is > 60 distance away, the object's height should be 50. If the player's distance is between 5 and 60, the height of the object should be calculated based on the given scale, with an easing function applied so that it moves gradually to it's top and bottom locations.
This can be best illustrated with the attached graph that I created. The graph may not be perfect, but it should be close enough to get the general idea of what I'm hoping to achieve.
That said, I'd assume you'd need at least 5 variables...
minDistance, but how would I use this information to calculate the expected height for a given distance?