WorldRayCastResult

lumin. WorldRayCastResult

Structure to hold the World Raycast Result data.

Methods

getConfidence() → {number}

Returns the ray confidence level.

Returns:
Type
number

getFromDir() → {vec3}

Returns the ray direction in world coordinates.

Returns:
Type
vec3

getFromHeight() → {number}

Returns the number of vertical rays.

Returns:
Type
number

getFromHorizFovDeg() → {number}

Returns the horizontal field-of-view, in degrees.

Returns:
Type
number

getFromPos() → {vec3}

Returns:
Type
vec3

getFromWidth() → {number}

Returns the number of horizontal rays.

Returns:
Type
number

getHitNormal() → {vec3}

Returns the ray hit normal in world coordinates.

Returns:
Type
vec3

getHitPos() → {vec3}

Returns the ray hit position in world coordinates.

Returns:
Type
vec3

getUserValue() → {number}

Returns the user value set in the ray request.

Returns:
Type
number

getValid() → {boolean}

Returns if the data in this struct is valid.

Returns:
Type
boolean