API reference
API reference
Select your platform
No SDKs available
No versions available

RayDistanceMask Class

Extends Mask
A mask that samples the distance of a raycast hit.

Methods

Check ( c )
Checks if the candidate is valid for the given mask.
Signature
override bool Check(Candidate c)
Parameters
c: Candidate  Candidate with the information from the distribution
Returns
override bool  true if valid
SampleMask ( candidate )
Executes the mask on a candidate and returns the value.
Signature
override float SampleMask(Candidate c)
Parameters
candidate: Candidate  Candidate with the information from the distribution
Returns
override float  The float depending on the mask