should you use math.lerp or math.clamp for player movement unity code example
Example: how to lerp a value in unity
lerpValue = Mathf.Lerp(minValue, maxValue, interpolationPoint);
lerpValue = Mathf.Lerp(minValue, maxValue, interpolationPoint);