<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ClothCollisionGroupSet/init(groups:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:22RealityFoundationCloth0C17CollisionGroupSetV6groupsACSaySiG_tcfc"
  },
  "title" : "init(groups:)"
}
-->

# init(groups:)

Creates a collision group set from an array of numbered groups.

```
init(groups: [Int])
```

## Parameters

`groups`

The groups contained in the set. A maximum of 32 groups can be used,
identified by values between 1 and 32.

---

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)