SceneManager:ShortestDistance

From Data Realms Wiki

(Difference between revisions)
Jump to: navigation, search
Beautifybot (Talk | contribs)
(updating function page)

Latest revision as of 00:48, 28 June 2012

Function
SyntaxShortestDistance( * The two Vector coordinates of the two positions to find the shortest distance between.
  • Whether to check if the passed in points are outside the scene, and to wrap them if they are. )
Description:
Calculates the shortest distance between two points in scene coordinates, taking into account all wrapping and out of bounds of the two points.
ReturnsThe resulting vector screen shows the shortest distance, spanning over wrapping borders etc. Basically the ideal pos2 - pos1.




Example
DescriptionPlaceholder!
Code
  1. for k,v in pairs(PagesWithoutExamples) do
  2.     v.MakeExample(NoErrors);
  3. end
OutputPlaceholder!
Personal tools