> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/api/functions/rotationmanager.onrotate.md).

# rotationManager.onRotate

> **onRotate**(`onUpdate`): `void`

Register the main rotation callback. This is where you call rotate().

### Parameters

#### onUpdate

`Function`

Function invoked every tick.

### Returns

`void`

### Example

```ts
rotationManager.onRotate(() => {
    // Simple aim step
    rotationManager.rotate(targetYaw, targetPitch, 8.0);
});
```
