<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ClothColliderEvents/NewBodyCollisions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:22RealityFoundationCloth0C14ColliderEventsO17NewBodyCollisionsV"
  },
  "title" : "ClothColliderEvents.NewBodyCollisions"
}
-->

# ClothColliderEvents.NewBodyCollisions

An event type that a cloth collider publishes (before simulation update) when cloth bodies collide with it.

```
struct NewBodyCollisions
```

## Overview

This event should be treated as having a non-escapable lifetime.
Some of its data is no longer available after its lifetime has ended.

## Topics

### Accessing collision data

[`func withCollisions<Result>((Span<ClothColliderEvents.NewBodyCollisions.Collision>) -> Result) -> Result`](/documentation/RealityKit/ClothColliderEvents/NewBodyCollisions/withCollisions(_:))

Provides access to the collisions with cloth bodies that took place.

[`struct Collision`](/documentation/RealityKit/ClothColliderEvents/NewBodyCollisions/Collision)

A collision with a cloth body.

### Identifying the event

[`let colliderEntity: Entity`](/documentation/RealityKit/ClothColliderEvents/NewBodyCollisions/colliderEntity)

The entity that has the collider component that this event originates from.

[`let updateCount: UInt64`](/documentation/RealityKit/ClothColliderEvents/NewBodyCollisions/updateCount)

The simulation update that this event originates from.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Event`](/documentation/RealityKit/Event)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)