---
title: "offsetBy(rotation:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/shaperesource/offsetby(rotation:)"
---

# offsetBy(rotation:)

Creates a new shape resource by applying a rotation.

## Declaration

```swift
@MainActor @preconcurrency func offsetBy(rotation: simd_quatf) -> ShapeResource
```

## Parameters

- `rotation`: The rotation to apply to the existing shape resource.

## Return Value

Return Value The transformed resource.

## See Also

### Transforming a shape

- [offsetBy(translation:)](realitykit/shaperesource/offsetby(translation:).md)
- [offsetBy(rotation:translation:)](realitykit/shaperesource/offsetby(rotation:translation:).md)
