RayCastResultLight

lumin. RayCastResultLight

A light weight ray cast result

Constructor

new RayCastResultLight()

Methods

getDistance() → {number}

Return the distance between the ray start and the point hit.

Returns:
Type
number

getHitNormal() → {vec3}

Return the normal vector at the point hit.

Returns:
Type
vec3

getNodeId() → {BigInt}

Return the id of the Node hit.

Returns:
Type
BigInt

getPointHit() → {vec3}

Return the point hit, in prism-space.

Returns:
Type
vec3

getPrismId() → {BigInt}

Return the id of the Prism the hit Node is contained in.

Returns:
Type
BigInt