Mount Fuji Engine  0.8b
MF_API bool MFCollision_RayCylinderTest ( const MFVector rayPos,
const MFVector rayDir,
const MFVector cylinderPos,
const MFVector cylinderDir,
float  cylinderRadius,
bool  capped,
MFRayIntersectionResult pResult = NULL,
float *  pCylinderTime = NULL 
)

Find the nearest point where a ray intersects a cylinder.

Parameters
rayPosRay starting position.
rayDirRay direction.
cylinderPosPosition of the base of the cylinder.
cylinderDirVector along which the cylinder extends.
cylinderRadiusCylinder radius.
cappedSpecifies weather to test the cylinders caps or not. If false, it is treated as an infinite cylinder.
pResultOptional pointer to an MFRayIntersectionResult structure that receives details about the intersection.
pCylinderTimeOptional pointer to a float that receives the time of intersection along the cylinders ray.
Returns
True if the ray intersects the cylinder.