Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

RayCastOptions

struct in Physics

Fields

NameTypeDescription
RayOriginVector3

A ray origin.

RayDirectionVector3

A ray direction. Can be non-normalized.

MaxLenfloat

Maximum distance of cast.

GroupsInteractionGroups?

Groups to check.

SortResultsbool

Whether to sort intersections from closest to farthest.