Parameters

fromThe starting point of the ray in world coordinates.
directionНаправление луча.
distanceThe maximum distance the ray should check for collisions.
layerMaskA LayerMask that is used to selectively ignore Colliders when casting a ray.
maxHitsThe maximum number of Colliders the ray can hit.

Description

Create a RaycastCommand.