This is basically an extension of my previous question which is Best way to make barrier/storm? For battle royale game
But, I have figured out how to know how far away a player is etc. But I want to know how far the “barries/storm” is away from the middle.
I have one idea:
Casting a ray from the middle to the barrier and then getting the magnitude.
But is there another way, an easier way?
If so please answer, I would be very gratefull.
Hope this drawing helps to understand.