Math question

Hello,

I’ve stumbled upon a question which I cannot answer with my basic high-school math skills.
I’ve got this line of code:

   alertOMeter = Mathf.Lerp(alertOMeter, 100,2f*Time.deltaTime);

but now i want to increase the “Acceleration” when a certain float gets smaller:

float distanceToPlayer = Vector3.Distance(transform.position, _player.transform.position);

It would be great if someone could help me with this!

Brum.

You can dividend 1 by the float. I mean x=1/distanceToPlayer
On this way your result gets bigger when the float gets smaller.
Hope you understand what I mean. Sorry I’m not a native speaker.