---
title: "setMatrix(_:forTime:)"
framework: modelio
role: symbol
role_heading: Instance Method
path: "modelio/mdltransform/setmatrix(_:fortime:)"
---

# setMatrix(_:forTime:)

## Declaration

```swift
func setMatrix(_ matrix: matrix_float4x4, forTime time: TimeInterval)
```

## See Also

### Using Factors of an Animated Transform

- [translation(atTime:)](modelio/mdltransform/translation(attime:).md)
- [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)
