SceneManager:ShortestDistance

From Data Realms Wiki

Revision as of 00:48, 28 June 2012 by Beautifybot (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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