---
title: "translation(atTime:)"
framework: modelio
role: symbol
role_heading: Instance Method
path: "modelio/mdltransform/translation(attime:)"
---

# translation(atTime:)

Returns the x-, y-, and z-axis offsets of the transform relative to its parent coordinate space, as of the specified time sample.

## Declaration

```swift
func translation(atTime time: TimeInterval) -> vector_float3
```

## Parameters

- `time`: The time sample for which to request information.

## Return Value

Return Value The translation vector of the transform.

## Discussion

Discussion Together with the rotation, scale, and shear factors, a translation vector defines the local coordinate space for any object affected by the transform, relative to a parent coordinate space. To work with the complete transform, use the localTransform(atTime:) and setLocalTransform(_:forTime:) methods. Requesting a sample outside the time range clamps results to the minimumTime or maximumTime sample. Some asset formats support continuous sampling with interpolation for times between the samples stored in the asset; others are discrete. For an asset with discrete time information, requesting a sample time in between the samples stored in the asset returns data for the immediately preceding time.

## See Also

### Using Factors of an Animated Transform

- [setTranslation(_:forTime:)](modelio/mdltransform/settranslation(_:fortime:).md)
- [rotation(atTime:)](modelio/mdltransform/rotation(attime:).md)
- [rotationMatrix(atTime:)](modelio/mdltransform/rotationmatrix(attime:).md)
- [setRotation(_:forTime:)](modelio/mdltransform/setrotation(_:fortime:).md)
- [scale(atTime:)](modelio/mdltransform/scale(attime:).md)
- [setScale(_:forTime:)](modelio/mdltransform/setscale(_:fortime:).md)
- [shear(atTime:)](modelio/mdltransform/shear(attime:).md)
- [setShear(_:forTime:)](modelio/mdltransform/setshear(_:fortime:).md)
- [setMatrix(_:forTime:)](modelio/mdltransform/setmatrix(_:fortime:).md)
