Hello,
I need help converting the distance between two objects to a percentage.
I have two objects, one stationary (A), and another that moves ( B). When B is less than a maximum distance to A (in this case 200), something starts to happen to A. But what I also want is within that radius for a percentage to be calculated, with 0% being maximum distance and 100% being on top of object A. So the percentage of A increases the closer you get.
Any help would be greatly appreciated.
Thanks,
Dan