Contents

setLimits(_:)

Sets limits for the axes of rotation.

Declaration

final func setLimits(_ limits: DockAccessory.Limits) throws

Parameters

  • limits:

    The upper and lower limit of orientation, in radians, for each of the supported axes.

Discussion

Limits only apply to the current tracking session. Afterwards, the orientation specifications default to the manufacturer limits. This method impacts primarily subsequent calls to setOrientation(_:duration:relative:) and setOrientation(_:duration:relative:). Limits only apply to the current tracking session. When the session ends, the orientation specifications default to the manufacturer limits.

This method only works when you disable system tracking.

See Also

Setting position and limits