The result of a successful raycast into the scene.

See

raycast in @urth/metatell-sdk/input.

Hierarchy

  • RaycastHit

Properties

distance: number

Distance from the ray origin to the hit point.

normal?: Vector3Data

Surface normal at the hit point, if available.

objectId: string

Id of the object that was hit.

World-space point where the ray hit the object.