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 shape at the start of the cast.
The parameters of PhysicsAPI.shapeCast and the other shape cast methods. A shape that already overlaps a collider at the start hits it at distance
0.See
Shape casts