raycastAll
raycastAll
Signature
raycastAll(ray?: Ray): Promise<RayObjectHit | null>Parameters
Parameter
Type
Required
Description
type Ray = {
start: Vector3;
direction: Vector3;
};Returns
type RayObjectHit = {
id: string; // Object UUID
name: string; // Object name
position: Vector3; // World position of hit point
normal: Vector3; // Surface normal at hit point
uv: Vector3; // UV coordinates (z is always 0)
};Usage
Notes
Last updated