<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation9TransformV"
  },
  "title" : "Transform"
}
-->

# Transform

A component that defines the scale, rotation, and translation of an entity.

```
@frozen struct Transform
```

## Overview

An entity acquires a [`Transform`](/documentation/RealityKit/Transform) component, as well as a set of methods
for manipulating the transform, by adopting the [`HasTransform`](/documentation/RealityKit/HasTransform) protocol.
This is true for all entities, because the [`Entity`](/documentation/RealityKit/Entity) base class adopts the
protocol.

## Topics

### Creating a transform

[`init()`](/documentation/RealityKit/Transform/init())

Creates a transform with the values of the identity transform.

[`init(scale:rotation:translation:)`](/documentation/RealityKit/Transform/init(scale:rotation:translation:))

Creates a new transformation using the given values.

[`init(pitch:yaw:roll:)`](/documentation/RealityKit/Transform/init(pitch:yaw:roll:))

Creates a new transform from the specified Euler angles.

[`init(matrix:)`](/documentation/RealityKit/Transform/init(matrix:))

Creates a new transform represented as a 4x4 matrix.

### Setting transform properties

[`scale`](/documentation/RealityKit/Transform/scale)

The scaling factor applied to the entity.

[`rotation`](/documentation/RealityKit/Transform/rotation)

The rotation of the entity specified as a unit quaternion.

[`translation`](/documentation/RealityKit/Transform/translation)

The position of the entity along the x, y, and z axes.

[`matrix`](/documentation/RealityKit/Transform/matrix)

The transform represented as a 4x4 matrix.

### Getting the identity transform

[`identity`](/documentation/RealityKit/Transform/identity)

The identity transform.

### Comparing transforms

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`ProjectiveTransformable3D`](/documentation/Spatial/ProjectiveTransformable3D)

[`BindableData`](/documentation/RealityKit/BindableData)

[`Component`](/documentation/RealityKit/Component)

[`ProjectiveTransformable3DFloat`](/documentation/Spatial/ProjectiveTransformable3DFloat)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Copyable`](/documentation/Swift/Copyable)

[`AnimatableData`](/documentation/RealityKit/AnimatableData)

[`Equatable`](/documentation/Swift/Equatable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`Decodable`](/documentation/Swift/Decodable)

[`Escapable`](/documentation/Swift/Escapable)

[`Encodable`](/documentation/Swift/Encodable)

---

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)