---
title: "volume(shape:)"
framework: realitykit
role: symbol
role_heading: Type Method
path: "realitykit/clothgrabcomponent/grabmode/volume(shape:)"
---

# volume(shape:)

Grabbing will be performed using a volume of the given shape.

## Declaration

```swift
static func volume(shape: ClothVolumeShape) -> ClothGrabComponent.GrabMode
```

## Parameters

- `shape`: The shape of the volume used to select and drag particles.

## Return Value

Return Value A volume-based grab mode.

## See Also

### Creating a grab mode

- [ray](realitykit/clothgrabcomponent/grabmode/ray.md)
