<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/Transform/init(matrix:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation9TransformV6matrixACSo13simd_float4x4a_tcfc"
  },
  "title" : "init(matrix:)"
}
-->

# init(matrix:)

Creates a new transform represented as a 4x4 matrix.

```
init(matrix: float4x4)
```

## Parameters

`matrix`

A transformation matrix.

## Discussion

A [`Transform`](/documentation/RealityKit/Transform) component can’t represent every transform that a
general 4x4 matrix can . Using a 4x4 matrix during
initialization might result in certain transformations, such as shear, being lost.

---

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)