<!--
{
  "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(pitch:yaw:roll:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation9TransformV5pitch3yaw4rollACSf_S2ftcfc"
  },
  "title" : "init(pitch:yaw:roll:)"
}
-->

# init(pitch:yaw:roll:)

Creates a new transform from the specified Euler angles.

```
init(pitch x: Float = 0, yaw y: Float = 0, roll z: Float = 0)
```

## Parameters

`x`

The rotation around the x-axis in radians.

`y`

The rotation around the y-axis in radians.

`z`

The rotation around the z-axis in radians.

## Discussion

The rotation order using intrinsic rotation order is defined as:

1. Rotate around y-axis (yaw). 2. Rotate around the body-fixed x-axis
   (pitch). 3. Rotate around the body-fixed z-axis (roll).

The rotation order using extrinsic rotation order is defined as:

1. Rotate around the z-axis (roll). 2. Rotate around the world space
   x-axis (pitch). 3. Rotate around the world space y-axis (yaw).

---

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)