public bool IntersectRay (Ray ray);

설명

Does ray intersect this bounding box?

no example available in C#

public bool IntersectRay (Ray ray, out float distance);

설명

Does ray intersect this bounding box?

When the function returns true, the distance to the ray's origin will be returned in the distance parameter.