---
title: translation
framework: modelio
role: symbol
role_heading: Instance Property
path: modelio/mdltransform/translation
---

# translation

The x-, y-, and z-axis offsets of the transform relative to its parent coordinate space.

## Declaration

```swift
var translation: vector_float3 { get set }
```

## Discussion

Discussion Together with the rotation, scale, and shear properties, this property defines the local coordinate space for any object affected by the transform, relative to a parent coordinate space. Use the matrix property to work with the complete transform. If the transform includes time-based information, reading this property returns the translation as of the earliest time sample (as reported by the minimumTime property). Writing to this property erases any time-sampled data for the translation factor. To work with time-sampled data from an animated transform, use the translation(atTime:) and setTranslation(_:forTime:) methods.

## See Also

### Using Factors of a Static Transform

- [rotation](modelio/mdltransform/rotation.md)
- [scale](modelio/mdltransform/scale.md)
- [shear](modelio/mdltransform/shear.md)
- [setIdentity()](modelio/mdltransform/setidentity().md)
