<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ClothColliderComponent/disableCollisions(towards:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:22RealityFoundationCloth0C17ColliderComponentV17disableCollisions7towardsyAA0C17CollisionGroupSetV_tF"
  },
  "title" : "disableCollisions(towards:)"
}
-->

# disableCollisions(towards:)

Disables one-way collisions towards the selected groups.

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

## Parameters

`groups`

The collision groups to remove from the collider’s mask.

## Discussion

This removes the selected groups from the collider’s mask, so that body particles in those
groups will no longer be pushed away by this collider.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)