Tests a sphere for intersection with an arbitrary CollisionItem.
- Parameters
-
spherePos | World position of the sphere. |
radius | Radius of the sphere. |
pItem | Pointer to the item to test for intersection by the sphere. |
pResult | Optional pointer to an MFCollisionResult which will receive information about the intersection. |
- Returns
- A pointer to the nearest CollisionItem intersected by the sphere. Return value is NULL if no intersection occurred.