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

# ray

Grabbing will be performed using a ray.

```
static var ray: ClothGrabComponent.GrabMode { get }
```

## Discussion

The translation of the entity determines the origin of the ray, and the forward vector determines the
ray direction.

---

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)