Tests a sweeping sphere for intersection with an arbitrary CollisionItem.
- Parameters
-
sweepSpherePos | World position of the sweeping sphere. |
sweepSphereVelocity | The sweeping sphere's velocity vector. |
sweepSphereRadius | Radius of the sweeping sphere. |
pItem | Pointer to the item to test for intersection by the sweeping sphere. |
pResult | Optional pointer to an MFSweepSphereResult which will receive information about the intersection. |
- Returns
- A pointer to the nearest CollisionItem intersected by the sweeping sphere. Return value is NULL if no intersection occurred.