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

# ClothColliderEvents.NewBodyCollisions.Collision

A collision with a cloth body.

```
struct Collision
```

## Topics

### Identifying the collider

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

The entity of the body that collided with the collider.

[`var bodyComponent: ClothBodyComponent?`](/documentation/RealityKit/ClothColliderEvents/NewBodyCollisions/Collision/bodyComponent)

The [`ClothBodyComponent`](/documentation/RealityKit/ClothBodyComponent) of the colliding body, if still present on the entity.

### Accessing affected particles

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

Provides access to the indices of particles that collided with the collider.

## Relationships

### Conforms To

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

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

---

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)