Contents

SceneRealityCoordinateSpace

The coordinate space that represents the center of a RealityKit scene.

Declaration

struct SceneRealityCoordinateSpace

Overview

The center, or origin, of a RealityKit scene varies depending on the platform and context:

visionOS (Window or Volume)

The origin is a point that extends outward from the window, or upward from the volume.

visionOS (Immersive Space)

The origin is the ARKit world origin, which does not directly relate to any specific RealityView, but rather to the broader immersive environment.

macOS and iOS (Non-AR)

The origin is a point behind the RealityView. Here, the RealityView acts as a window through which you can view the scene, and the scene’s origin is placed behind this by default, giving depth to the scene.

iOS (AR Mode)

Similar to the Immersive Space in visionOS, ARKit determines the world origin, and does not directly relate to the RealityView position.

Topics

Initializers

See Also

Coordinate space conversions