Bounds.IntersectRay Manual     Reference     Scripting  
Scripting > Runtime Classes > Bounds
Bounds.IntersectRay

function IntersectRay (ray : Ray) : bool

Description

Does ray intersect this bounding box?

function IntersectRay (ray : Ray, out distance : float) : bool

Description

Does ray intersect this bounding box?

When IntersectRay returns true distance will be the distance to the ray's origin.