SceneManager:ShortestDistance
From Data Realms Wiki
(Difference between revisions)
Latest revision as of 00:48, 28 June 2012
Function | |
---|---|
Syntax | ShortestDistance( * The two Vector coordinates of the two positions to find the shortest distance between.
|
Description: | |
Calculates the shortest distance between two points in scene coordinates, taking into account all wrapping and out of bounds of the two points. | |
Returns | The resulting vector screen shows the shortest distance, spanning over wrapping borders etc. Basically the ideal pos2 - pos1. |
Example | |
---|---|
Description | Placeholder! |
Code |
|
Output | Placeholder! |