Tests a ray for intersection with an arbitrary CollisionItem. 
- Parameters
- 
  
    | rayPos | Ray starting position. |  | rayDir | Ray direction. |  | pItem | Pointer to the item to test for intersection by the ray. |  | pResult | Optional 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.