Find the nearest point where a ray intersects a box.
- Parameters
-
rayPos | Ray starting position. |
rayDir | Ray direction. |
boxPos | Position of the center of the box. |
boxRadius | Boxes radius along each axis. |
pResult | Optional pointer to an MFRayIntersectionResult structure that receives details about the intersection. |
- Returns
- True if the ray intersects the box.