Contents

collisions

The collisions with cloth bodies that took place.

Declaration

var collisions: Span<ClothColliderEvents.NewBodyCollisions.Collision> { get }

Discussion

The lifetime of this span is tied to the owning event, and thus cannot escape it. This data is only available during the subscription callback in which the owning event is provided. If you store the event and attempt to access this data after the subscription callback, then you will get an empty span instead.

See Also

Accessing collision data