<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ModelIO",
  "identifier" : "/documentation/ModelIO/MDLTransformComponent/setLocalTransform(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(pl)MDLTransformComponent(im)setLocalTransform:"
  },
  "title" : "setLocalTransform(_:)"
}
-->

# setLocalTransform(_:)

Sets a new static transform matrix, overriding any time-based transform information.

```
optional func setLocalTransform(_ transform: matrix_float4x4)
```

## Parameters

`transform`

A new static transform matrix.

## Discussion

Calling this method sets both the [`minimumTime`](/documentation/ModelIO/MDLTransformComponent/minimumTime) and [`maximumTime`](/documentation/ModelIO/MDLTransformComponent/maximumTime) properties to zero.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)