SceneManager:CastStrengthSumRay

From Data Realms Wiki

Revision as of 00:48, 28 June 2012 by Beautifybot (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
SyntaxCastStrengthSumRay( * The starting position.
  • The ending position.
  • 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. )
Description:
Traces along a vector and returns how the sum of all encountered pixels' material strength values. This will take wrapping into account.
ReturnsThe sum of all encountered pixels' material strength vales. So if it was all Air, then 0 is returned (Air's strength value is 0).




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