Contents

WorldScalingCompensation

Indicates whether returned metrics will take dynamic scaling into account.

Declaration

struct WorldScalingCompensation

Overview

On visionOS, a window scene or a volume scene with the defaultWorldScaling(_:) modifier may scale dynamically when the user repositions it. In those cases, the metrics returned by a PhysicalMetric or PhysicalMetricsConverter value may or may not correspond to the units of a RealityView.

World scale compensation lets you specify if this scaling is taken into account. If the values are unscaled, they will correspond to the physical metrics of the user’s surroundings, regardless of dynamic scale. If scaled, they will be scaled appropriately for the scene, which means they will match the default coordinate system of a RealityView in that scene.

Topics

Type Properties

See Also

Interacting with volumes