Ray/capsule intersection test.