SceneManager:TargetDistanceScalar

From Data Realms Wiki

Jump to: navigation, search
Function
SyntaxTargetDistanceScalar( * 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.
ReturnsA 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
DescriptionPlaceholder!
Code
  1. for k,v in pairs(PagesWithoutExamples) do
  2.     v.MakeExample(NoErrors);
  3. end
OutputPlaceholder!
Personal tools