Mount Fuji Engine  0.8b
MF_API MFCollisionItem* MFCollision_RayTest ( const MFVector rayPos,
const MFVector rayDir,
MFCollisionItem pItem,
MFRayIntersectionResult pResult 
)

Tests a ray for intersection with an arbitrary CollisionItem.

Parameters
rayPosRay starting position.
rayDirRay direction.
pItemPointer to the item to test for intersection by the ray.
pResultOptional pointer to an MFRayIntersectionResult structire to receive details about the intersection.
Returns
A pointer to the nearest CollisionItem intersected by the ray. Return value is NULL if no intersection occurred.