> For the complete documentation index, see [llms.txt](https://docs.quickclient.cc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.quickclient.cc/actions/rotations.md).

# Повороты

Поворот головы к цели через общую очередь поворотов Quick.

`rotations()` поворачивает игрока к цели и не мешает ауре. Угол попадает в общую очередь поворотов Quick, поэтому боевые модули продолжают работать со своими приоритетами. Приоритет скрипта ограничен так, чтобы аура и кристаллы всегда были выше.

```java
@Override
public void onTick() {
    Entity target = entities().target();
    if (target == null) return;
    Point point = interaction().attackPoint(target, "multi", 4.5, false);
    if (point == null) return;
    rotations().apply(rotations().lookAt(point), 180f, 10);
}
```

## Как это работает

Каждый тик скрипт находит точку на хитбоксе цели и поворачивается к ней. Скорость 180 означает поворот сразу, приоритет 10.

| Метод                                | Тип       | Описание                                                                                             |
| ------------------------------------ | --------- | ---------------------------------------------------------------------------------------------------- |
| `player()`                           | `Angles`  | углы игрока с учётом подмены                                                                         |
| `sent()`                             | `Angles`  | углы из последнего пакета движения, который ушёл на сервер                                           |
| `lookAt(x, y, z)`, `lookAt(point)`   | `Angles`  | углы, при которых глаза смотрят на точку                                                             |
| `angleTo(x, y, z)`, `angleTo(point)` | `float`   | насколько взгляд отклоняется от направления на точку, 0..180                                         |
| `apply(angles, speed, priority)`     | `boolean` | задать поворот на этот тик; `speed` в градусах за тик, 180 и больше означает сразу; `priority` 0..40 |
| `apply(angles)`                      | `boolean` | повернуть сразу с приоритетом по умолчанию                                                           |
| `priority()`                         | `int`     | приоритет того, кто сейчас управляет поворотом                                                       |

`apply` возвращает `false`, если поворот перебил кто-то с более высоким приоритетом. Поворот действует один тик, поэтому вызывайте его каждый тик, пока он нужен.

Подменяются только углы, которые уходят на сервер. Камера остаётся на месте: на экране всё выглядит как раньше, а `rotations().player()` и `rotations().sent()` уже возвращают подменённые углы.

Положение игрока через несколько тиков и точку падения снаряда можно узнать через [Предсказание](/actions/prediction.md). Типы `Angles` и `Point` разобраны в [Точках и углах](/game/math.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.quickclient.cc/actions/rotations.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
