Mount Fuji Engine  0.8b
MF_API bool MFCollision_RayCapsuleTest ( const MFVector rayPos,
const MFVector rayDir,
const MFVector capsulePos,
const MFVector capsuleDir,
float  capsuleRadius,
MFRayIntersectionResult pResult = NULL 
)

Find the nearest point where a ray intersects a capsule.

Parameters
rayPosRay starting position.
rayDirRay direction.
capsulePosPosition of the base of the capsule.
capsuleDirVector along which the capsule extends.
capsuleRadiusCapsule radius.
pResultOptional pointer to an MFRayIntersectionResult structure that receives details about the intersection.
Returns
True if the ray intersects the capsule.