Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

Proximity Distance

Could there be a distance input for proximity trigger?


  • edited April 2018
    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 :p
  • Be a lot easier if proximity just had a distance input
  • edited April 2018
    @Latif3 that’s not the Pythagorean theorem- that’s 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:

  • edited April 2018
    Ok that makes more sense..
Sign In or Register to comment.

| make games in your browser
@ 2017, All rights reserved.

Contact us

Get In Touch