Find the nearest point where a ray intersects a capsule.
- Parameters
-
rayPos | Ray starting position. |
rayDir | Ray direction. |
capsulePos | Position of the base of the capsule. |
capsuleDir | Vector along which the capsule extends. |
capsuleRadius | Capsule radius. |
pResult | Optional pointer to an MFRayIntersectionResult structure that receives details about the intersection. |
- Returns
- True if the ray intersects the capsule.