파라미터

fromThe starting point of the ray in world coordinates.
directionThe direction of the ray.
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.

설명

Create a RaycastCommand.