API Referencebezel
RaycastHit
Ray intersection information, including the hit object and surface normal.
Module: bezel
Ray intersection information, including the hit object and surface normal.
Declaration
export type RaycastHit = {
/**
* The position in world space.
*/
position: Position3d;
/**
* The normalized surface direction.
*/
normal: Normal3d;
/**
* The distance.
*/
distance: number;
/**
* The object.
*/
object: GameObject;
/**
* Whether the ray intersected an object.
*/
didHit: boolean;
};Properties
position
The position in world space.
position: Position3d;normal
The normalized surface direction.
normal: Normal3d;distance
The distance.
distance: number;object
The object.
object: GameObject;didHit
Whether the ray intersected an object.
didHit: boolean;