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

# disableCollisions(towards:)

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

## Declaration

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

## Parameters

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

## Discussion

Discussion This removes the selected groups from the mask of all particles, so that particles in those groups will no longer 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)
- [enableCollisions(towards:)](realitykit/clothbodycomponent/enablecollisions(towards:).md)
