Function |
Syntax | ShortestDistance( * 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. |
Returns | The resulting vector screen shows the shortest distance, spanning over wrapping borders etc. Basically the ideal pos2 - pos1. |