Proximity Distance

Could there be a distance input for proximity trigger?

flowlab.io/game/view/858556
Working on a game, and trying to make the world’s visibility relative to your distance from it.

If you want the distance from the object to the center of the circle you can use the Pythagorean theorem. The length of the hypotenuse is the distance.

I’m actually not sure if it works with negative values (lol not the smartest). If it doesn’t just make the values absolute :stuck_out_tongue:

Be a lot easier if proximity just had a distance input

@Latif3 thats not the Pythagorean theorem- thats with triangles, aa+bb=cc

If you want to measure distance, subtract the coordinates to get distance

Triangles with a 90 degree angle, I know. What do you think I mean then? I don’t even understand what you mean with substracting coordinates.

This is what I mean:

Ok that makes more sense…