Search results

Jump to navigation Jump to search
  • ...that holds the direction and distance between two points. In other words, it produces exactly the same result as substracting the points' coordinates an <syntaxhighlight lang="lua">float getDistanceBetweenPoints2D ( float x1, float y1, float x2, float y2 )</syntaxhighlight>
    2 KB (268 words) - 08:30, 7 September 2019
  • This function takes two sets of XYZ coordinates. It returns the 3D direction from point A to point B. This can for example be u local rotx = math.atan2 (z2 - z1, getDistanceBetweenPoints2D (x2, y2, x1, y1))
    3 KB (404 words) - 14:24, 21 March 2023