Parameter | Details |
---|---|
origin | The starting point of the ray in world coordinates |
direction | The direction of the ray |
maxDistance | The max distance the ray should check for collisions |
layerMask | A Layer mask that is used to selectively ignore Colliders when casting a ray. |
queryTriggerInteraction | Specifies where this query should hit Triggers. |