<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ClothGrabComponent/GrabMode",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:22RealityFoundationCloth0C13GrabComponentV0D4ModeV"
  },
  "title" : "ClothGrabComponent.GrabMode"
}
-->

# ClothGrabComponent.GrabMode

Defines whether a grab component will select particles using a ray or a volume.

```
struct GrabMode
```

## Topics

### Creating a grab mode

[`static var ray: ClothGrabComponent.GrabMode`](/documentation/RealityKit/ClothGrabComponent/GrabMode/ray)

Grabbing will be performed using a ray.

[`static func volume(shape: ClothVolumeShape) -> ClothGrabComponent.GrabMode`](/documentation/RealityKit/ClothGrabComponent/GrabMode/volume(shape:))

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

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)