---
title: ray
framework: realitykit
role: symbol
role_heading: Type Property
path: realitykit/clothgrabcomponent/grabmode/ray
---

# ray

Grabbing will be performed using a ray.

## Declaration

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

## Discussion

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

## See Also

### Creating a grab mode

- [volume(shape:)](realitykit/clothgrabcomponent/grabmode/volume(shape:).md)
