Internal request payload behind input.raycast().

Plugins normally call raycast() rather than emitting this directly.

Hierarchy

  • RaycastRequest

Properties

correlationId: string

Id correlating this request with its RaycastResult.

direction: Vector3Data

Ray direction (need not be normalized).

layerMask?: number

Bitmask selecting which collision layers to test.

maxDistance?: number

Maximum distance to test along the ray.

origin: Vector3Data

World-space ray origin.