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

# enableCollisions(towards:)

Enables one-way collisions towards the selected groups for all particles in the body.

## Declaration

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

## Parameters

- `groups`: The collision groups to add to the mask of every particle.

## Discussion

Discussion This adds the selected groups to the mask of all particles, causing particles in those groups to be pushed away by this body in self-collisions. Colliders are never affected by particles, so this only influences body-to-body interactions.

## See Also

### Managing collisions

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