---
title: "init(shape:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/clothqueryvolumecomponent/init(shape:)"
---

# init(shape:)

Creates a cloth query volume component with the given shape.

## Declaration

```swift
init(shape: ClothVolumeShape)
```

## Parameters

- `shape`: The shape of the volume.
