SceneManager:CastStrengthRay

From Data Realms Wiki

Jump to: navigation, search
Function
SyntaxCastStrengthRay( * The starting position.
  • The vector to trace along.
  • The strength value of screen any found to be equal or more than will terminate the ray.
  • A reference to the vector screen will be filled out with the absolute location of the found terrain pixel of less than or equal to above strength.
  • For every pixel checked along the line, how many to skip between them for optimization reasons. 0 = every pixel is checked.
  • A material ID to ignore, IN ADDITION to Air.
  • Whetehr the ray should wrap around the scene if it crosses a seam. )
Description:
Traces along a vector and shows where along that ray there is an encounter with a pixel of a material with strength more than or equal to a specific value.
ReturnsWhether a material of equal or more strength was found along the ray. If not, the fourth parameter have been set to last position of the ray.




Example
DescriptionPlaceholder!
Code
  1. for k,v in pairs(PagesWithoutExamples) do
  2.     v.MakeExample(NoErrors);
  3. end
OutputPlaceholder!
Personal tools