Parámetros

fromEl punto inicial del rayo en coordenadas del mundo.
directionLa dirección del rayo.
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.

Descripción

Create a RaycastCommand.