---
title: setIdentity()
framework: modelio
role: symbol
role_heading: Instance Method
path: modelio/mdltransform/setidentity()
---

# setIdentity()

Sets all factors of the transform to those of the identity transformation.

## Declaration

```swift
func setIdentity()
```

## Discussion

Discussion The identity transform is equivalent to the lack of a transformation, so an object affected by the transform uses the same coordinate space as its parent. Calling this method also erases any time-sampled data, creating a static transform.

## See Also

### Using Factors of a Static Transform

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