Lysa  0.0
Lysa 3D Engine
RayHit Struct Reference

Detailed Description

Base result type for a ray intersection, containing the geometric hit data.

Lua full name: lysa.RayHit

Properties

float3 point
 World-space hit point.
 
float3 normal
 Surface normal at the hit point (unit vector).
 
number distance
 Distance from the ray origin to the hit point.
 

Property Documentation

float3 point

World-space hit point.

float3 normal

Surface normal at the hit point (unit vector).

number distance

Distance from the ray origin to the hit point.