Mount Fuji Engine  0.8b
MF_API bool MFCollision_RaySphereTest ( const MFVector rayPos,
const MFVector rayDir,
const MFVector spherePos,
float  radius,
MFRayIntersectionResult pResult = NULL 
)

Find the nearest point where a ray intersects a sphere.

Parameters
rayPosRay starting position.
rayDirRay direction.
spherePosSphere position.
radiusSphere radius.
pResultOptional pointer to an MFRayIntersectionResult structure that receives details about the intersection.
Returns
True if the ray intersects the sphere.