---
title: "enableCollisions(towards:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/clothcollidercomponent/enablecollisions(towards:)"
---

# enableCollisions(towards:)

Enables one-way collisions towards the selected groups.

## Declaration

```swift
mutating func enableCollisions(towards groups: ClothCollisionGroupSet)
```

## Parameters

- `groups`: The collision groups to add to the collider’s mask.

## Discussion

Discussion This adds the selected groups to the collider’s mask, causing body particles in those groups to be pushed away by this collider.

## See Also

### Managing collision response

- [isCollisionResponseEnabled](realitykit/clothcollidercomponent/iscollisionresponseenabled.md)
- [disableCollisions(towards:)](realitykit/clothcollidercomponent/disablecollisions(towards:).md)
