SceneManager:TargetDistanceScalar
From Data Realms Wiki
Revision as of 00:48, 28 June 2012 by Beautifybot (Talk | contribs)
Function | |
---|---|
Syntax | TargetDistanceScalar( * Which world coordinate point to check distance to/from. ) |
Description: | |
Calculates a scalar of how distant a certain point in the world is from the currently closest scroll target of all active screens. | |
Returns | A normalized scalar representing the distance between the closest scroll target of all active screens, to the passed in point. 0 means it's the point is within half a screen's width of the target, and 1.0 means it's on the clear opposite side of the scene. |
Example | |
---|---|
Description | Placeholder! |
Code |
|
Output | Placeholder! |