The actor whose collider moves. The cast starts from its current Transform.
OptionalactorGets each actor and returns false to leave it out.
The direction of the cast.
OptionalexcludeLeaves these actors out.
OptionalexcludeLeaves the actor itself out of the results.
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. Without it, the cast uses the layer of the actor's collider.
How far the cast goes, in world units.
OptionaloffsetMoves the start of the cast, in world units.
The parameters of PhysicsAPI.castActor and the other actor cast methods.
An actor without a collider finds nothing. An actor with a
segmentcollider finds nothing too.See
Actor casts