Performs a convex shape cast against all the geometry in the scene.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- Xcode 11.0+
A convex shape used to perform the cast.
The starting position of
The starting orientation of
The ending position of
The ending orientation of
The query type.
A collision mask that you can use to prevent collisions with certain objects.
An entity that defines the frame of reference. The method returns results relative to this entity. Set to
nilto use the world space origin
(0, 0, 0).
An array of collision cast hit results. Each hit indicates where the convex shape, starting at a given point and traveling in a given direction, hit a particular entity in the scene.
The method ignores entities that lack a