CollisionCastHit
A hit result of a collision cast.
Declaration
struct CollisionCastHitOverview
You get a collection of collision cast hits from either the raycast(origin:direction:length:query:mask:relativeTo:) method, or the convexCast(convexShape:fromPosition:fromOrientation:toPosition:toOrientation:query:mask:relativeTo:) 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.