<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DockKit",
  "identifier" : "/documentation/DockKit/DockAccessory/setAngularVelocity(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "DockKit"
    ],
    "preciseIdentifier" : "s:7DockKit0A9AccessoryC18setAngularVelocityyySo10SPVector3DaYaKF"
  },
  "title" : "setAngularVelocity(_:)"
}
-->

# setAngularVelocity(_:)

Sets the angular velocity of each axis of orientation.

```
final func setAngularVelocity(_ angularVelocity: Vector3D) async throws
```

## Parameters

`angularVelocity`

A Vector3D object of the angular velocity to set, in axis/angle notation, corresponsing to radians per second for pitch, yaw, and roll axes.

## Discussion

The angular velocity is expressed in radians per second for pitch, yaw, and roll. This method works only when you disable system tracking.

> Throws: ``doc://com.apple.DockKit/documentation/DockKit/DockKitError/notConnected`` if the accessory disconnects, or other errors if communication with the accessory fails.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)