A hit result of a collision cast.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- Xcode 11.0+
You get a collection of collision cast hits from either the
raycast(origin: method, or the
convex method. Each hit indicates where the ray or the convex shape, starting at a given point and traveling in a given direction, hit a particular entity in the scene.
The frame of reference for the position and normal of the hit depends on the reference entity parameter passed to the method that generated the hit. Pass
nil as the reference to use world space.