---
title: "setAngularVelocity(_:)"
framework: dockkit
role: symbol
role_heading: Instance Method
path: "dockkit/dockaccessory/setangularvelocity(_:)"
---

# setAngularVelocity(_:)

Sets the angular velocity of each axis of orientation.

## Declaration

```swift
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.

## Mentioned in

Modify rotation and positioning programmatically

## Discussion

Discussion The angular velocity is expressed in radians per second for pitch, yaw, and roll. This method works only when you disable system tracking. note: DockKitError.notConnected if the accessory disconnects, or other errors if communication with the accessory fails.

## See Also

### Setting position and limits

- [setLimits(_:)](dockkit/dockaccessory/setlimits(_:).md)
- [setOrientation(_:duration:relative:)](dockkit/dockaccessory/setorientation(_:duration:relative:)-2epe2.md)
- [setOrientation(_:duration:relative:)](dockkit/dockaccessory/setorientation(_:duration:relative:)-6b0fl.md)
