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

# offsetBy(translation:)

Creates a new shape resource by applying a translation.

## Declaration

```swift
@MainActor @preconcurrency func offsetBy(translation: SIMD3<Float>) -> ShapeResource
```

## Parameters

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

## Return Value

Return Value The transformed resource.

## See Also

### Transforming a shape

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