---
title: orientation
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/hastransform/orientation
---

# orientation

The rotation of the entity relative to its parent.

## Declaration

```swift
@MainActor @preconcurrency var orientation: simd_quatf { get set }
```

## Mentioned in

Automatically animating RealityKit entities

## Discussion

Discussion This value is the entity’s rotation relative to its parent. To get the world-space orientation of the entity, use orientation(relativeTo:), passing nil as the reference entity. This is the same as the rotation value on the transform.

## See Also

### Rotating an entity

- [orientation(relativeTo:)](realitykit/hastransform/orientation(relativeto:).md)
- [setOrientation(_:relativeTo:)](realitykit/hastransform/setorientation(_:relativeto:).md)
