<!--
{
  "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/matrix",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation9TransformV6matrixSo13simd_float4x4avp"
  },
  "title" : "matrix"
}
-->

# matrix

The transform represented as a 4x4 matrix.

```
var matrix: float4x4 { get set }
```

## Discussion

The [`Transform`](/documentation/RealityKit/Transform) component can’t represent all transforms that a
general 4x4 matrix can represent. Using a 4x4 matrix to set the
transform is therefore a lossy event that might result in certain
transformations, like shear, being dropped.

---

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)