1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Distance between vectors

Discussion in 'Development' started by iCirgio, Jul 11, 2019.

  1. iCirgio

    iCirgio Slime

    Messages:
    92
    GitHub:
    lolnova
    I have x1, z1, x2 and z2 saved for 2 locations, how can i check the distance between the 2 of those locations?
     
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Use $pos1->distance($pos2).

    Edit: Fix typo
    (yes I actually managed to get a typo into one word of text)
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.