withIntersections(_:)
Provides access to the intersections with cloth bodies that took place.
Declaration
func withIntersections<Result>(_ callback: (Span<ClothQueryVolumeEvents.NewBodyIntersections.Intersection>) -> Result) -> ResultParameters
- callback:
A closure that receives a span over the intersections.
Return Value
The value returned by callback.
Discussion
This span is only available during the subscription callback of this event. The provided span is only valid for the lifetime of the callback.