---
title: collisionFilters
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/clothbodycomponent/collisionfilters
---

# collisionFilters

Defines the collision groups that each particle belongs to, and the mask used to determine which collision groups each particle is affected by.

## Declaration

```swift
var collisionFilters: PerClothVertexData<ClothCollisionFilter> { get set }
```

## Discussion

Discussion By default, the collision groups are set to .defaultBodies, and the mask is set to .all.

## See Also

### Managing collisions

- [colliderBinding](realitykit/clothbodycomponent/colliderbinding-swift.property.md)
- [ClothBodyComponent.ColliderBinding](realitykit/clothbodycomponent/colliderbinding-swift.struct.md)
- [enableCollisions(towards:)](realitykit/clothbodycomponent/enablecollisions(towards:).md)
- [disableCollisions(towards:)](realitykit/clothbodycomponent/disablecollisions(towards:).md)
