Find the nearest point where a ray intersects a sphere.
- Parameters
-
| rayPos | Ray starting position. |
| rayDir | Ray direction. |
| spherePos | Sphere position. |
| radius | Sphere radius. |
| pResult | Optional pointer to an MFRayIntersectionResult structure that receives details about the intersection. |
- Returns
- True if the ray intersects the sphere.