unity3dRaycast


Parameters

ParameterDetails
originThe starting point of the ray in world coordinates
directionThe direction of the ray
maxDistanceThe max distance the ray should check for collisions
layerMaskA Layer mask that is used to selectively ignore Colliders when casting a ray.
queryTriggerInteractionSpecifies where this query should hit Triggers.