origin | The center of the sphere at the start of the sweep. |
radius | The radius of the sphere. |
direction | The direction into which to sweep the sphere. |
distance | The length of the sweep. |
layerMask | A Layer mask that is used to selectively ignore colliders when casting a capsule. |
Like Physics.SphereCast, but this function will return all hits the sphere sweep intersects.
ray | The starting point and direction of the ray into which the sphere sweep is cast. |
radius | The radius of the sphere. |
distance | The length of the sweep. |
layerMask | A Layer mask that is used to selectively ignore colliders when casting a capsule. |
Like Physics.SphereCast, but this function will return all hits the sphere sweep intersects.