---
title: collisionFilter
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/clothcollidercomponent/collisionfilter
---

# collisionFilter

Defines the collision groups that the collider belongs to, and the mask used to determine which groups this collider affects.

## Declaration

```swift
var collisionFilter: ClothCollisionFilter
```

## Discussion

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