---
title: Transform
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/transform
---

# Transform

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

## Declaration

```swift
@frozen struct Transform
```

## Mentioned in

Automatically animating RealityKit entities

## Overview

Overview An entity acquires a Transform component, as well as a set of methods for manipulating the transform, by adopting the HasTransform protocol. This is true for all entities, because the Entity base class adopts the protocol.

## Topics

### Creating a transform

- [init()](realitykit/transform/init().md)
- [init(scale:rotation:translation:)](realitykit/transform/init(scale:rotation:translation:).md)
- [init(pitch:yaw:roll:)](realitykit/transform/init(pitch:yaw:roll:).md)
- [init(matrix:)](realitykit/transform/init(matrix:).md)

### Setting transform properties

- [scale](realitykit/transform/scale.md)
- [rotation](realitykit/transform/rotation.md)
- [translation](realitykit/transform/translation.md)
- [matrix](realitykit/transform/matrix.md)

### Getting the identity transform

- [identity](realitykit/transform/identity.md)

### Initializers

- [init(_:)](realitykit/transform/init(_:).md)
- [init(projectiveTransform:)](realitykit/transform/init(projectivetransform:).md)

### Instance Methods

- [hash(into:)](realitykit/transform/hash(into:).md)

### Default Implementations

- [ProjectiveTransformable3DFloat Implementations](realitykit/transform/projectivetransformable3dfloat-implementations.md)

## Relationships

### Conforms To

- [AnimatableData](realitykit/animatabledata.md)
- [BindableData](realitykit/bindabledata.md)
- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Component](realitykit/component.md)
- [Copyable](swift/copyable.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [ProjectiveTransformable3D](spatial/projectivetransformable3d.md)
- [ProjectiveTransformable3DFloat](spatial/projectivetransformable3dfloat.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Positioning entities in space

- [HasTransform](realitykit/hastransform.md)
- [transformMatrix(relativeTo:)](realitykit/entity/transformmatrix(relativeto:).md)
- [Entity.CoordinateSpaceReference](realitykit/entity/coordinatespacereference.md)
- [Entity.ForwardDirection](realitykit/entity/forwarddirection.md)
