Mount Fuji Engine  0.8b
MF_API bool MFCollision_RayBoxTest ( const MFVector rayPos,
const MFVector rayDir,
const MFVector boxPos,
const MFVector boxRadius,
MFRayIntersectionResult pResult = NULL 
)

Find the nearest point where a ray intersects a box.

Parameters
rayPosRay starting position.
rayDirRay direction.
boxPosPosition of the center of the box.
boxRadiusBoxes radius along each axis.
pResultOptional pointer to an MFRayIntersectionResult structure that receives details about the intersection.
Returns
True if the ray intersects the box.