<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PHASE",
  "identifier" : "/documentation/PHASE/PHASEObject/transform",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "PHASE"
    ],
    "preciseIdentifier" : "c:objc(cs)PHASEObject(py)transform"
  },
  "title" : "transform"
}
-->

# transform

A matrix, in local coordinates, that determines the object’s pose in the scene.

```
var transform: simd_float4x4 { get set }
```

## Discussion

The value of this property requires orthogonal basis vectors and uniform scale.

The framework interprets the transform’s position values in a right-handed coordinate system, where the *Y* axis extends upward and and the negative *Z* axis extends forward.

### Set an Object’s Position

An object positions in the 3D scene by the transformʼs first 3 elements of the last column. The following code sets an object’s position to `(0,0,-6)`, which is 6 meters in front of the world origin `(0,0,0)`.

```swift
var boardPieceTransform: simd_float4x4 = matrix_identity_float4x4
boardPieceTransform.columns.3.z -= 6.0
boardPieceSource.transform = boardPieceTransform
```

Set the [`unitsPerMeter`](/documentation/PHASE/PHASEEngine/unitsPerMeter) parameter to instruct PHASE to interpret [`transform`](/documentation/PHASE/PHASEObject/transform) values in your app’s preferred unit of measurement.

---

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)