---
title: "init(groups:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/clothcollisiongroupset/init(groups:)"
---

# init(groups:)

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

## Declaration

```swift
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.
