|
Find the nearest point where a ray intersects a cylinder.
- Parameters
-
rayPos | Ray starting position. |
rayDir | Ray direction. |
cylinderPos | Position of the base of the cylinder. |
cylinderDir | Vector along which the cylinder extends. |
cylinderRadius | Cylinder radius. |
capped | Specifies weather to test the cylinders caps or not. If false, it is treated as an infinite cylinder. |
pResult | Optional pointer to an MFRayIntersectionResult structure that receives details about the intersection. |
pCylinderTime | Optional pointer to a float that receives the time of intersection along the cylinders ray. |
- Returns
- True if the ray intersects the cylinder.
|