OptionalactorGets each actor and returns false to leave it out.
The direction of the cast.
OptionalexcludeLeaves these actors out.
OptionalhitGets each hit and returns false to leave it out.
The query may reuse the hit object, so it is valid only during the call.
Do not keep a reference to it.
OptionallayerFinds only colliders whose layer collides with this layer, as the collision matrix says.
How far the cast goes, in world units.
The start of the ray, in world space.
The parameters of PhysicsAPI.raycast and the other raycast methods.
See
Raycasts