how do i calculate a value based on a value you set and the distance between an object inbetween a start point and an end point basically making it so that if im at the start the value is one and if im at the end the value is the value i set in this case 0.1 and when im in the middle the value is 0.5 or something like that
Sounds like you want an inverse-lerp or similar, check this:
2 Likes