> 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/newgen/api/namespaces/rotationmanager.md).

# rotationManager

Sends a rotation to the server without turning the camera.

### Remarks

rotate() only takes effect from PreTickEvent until the player ticks; outside that it returns false.

### Example

```ts
script.addListener("PreTickEvent", () => {
    const target = mc.level.players.find(p => p !== mc.player);
    if (!target) return;
    const eyes = mc.player.getEyePosition(1);
    const aim = target.boundingBox.getCenter();
    rotationManager.rotate(math.yawTo(eyes, aim), math.pitchTo(eyes, aim), 30, rotationManager.MOVE_FIX);
});
```

### Variables

* [EXACT](/newgen/api/variables/rotationmanager.exact.md)
* [INSTANT](/newgen/api/variables/rotationmanager.instant.md)
* [KEEP\_DIRECTION](/newgen/api/variables/rotationmanager.keep_direction.md)
* [MOVE\_FIX](/newgen/api/variables/rotationmanager.move_fix.md)

### Functions

* [canRotate](/newgen/api/functions/rotationmanager.canrotate.md)
* [distance](/newgen/api/functions/rotationmanager.distance.md)
* [getSpoofedPitch](/newgen/api/functions/rotationmanager.getspoofedpitch.md)
* [getSpoofedYaw](/newgen/api/functions/rotationmanager.getspoofedyaw.md)
* [isSpoofing](/newgen/api/functions/rotationmanager.isspoofing.md)
* [rotate](/newgen/api/functions/rotationmanager.rotate.md)
