> For the complete documentation index, see [llms.txt](https://adofaieditor.gitbook.io/english/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://adofaieditor.gitbook.io/english/level-preparation-and-assisting-techniques/good-practices/hidden-twirls-and-on-beat-rotation.md).

# Hidden Twirls and On-beat rotation

{% hint style="info" %}
This practice is related to [Twirl](/english/events/gameplay-events/twirl.md) Events
{% endhint %}

## • Hidden Twirls

Twirls, when placed on bad spots in a level, can cause the gameplay to be impossible to read, as it may be covered by the track itself, making it hard/impossible for the player to know what to do next.

<figure><img src="/files/B5KybClCjj3MLMN1SKKs" alt="" width="349"><figcaption><p><em>Twirl hidden behind a 90° turn tile</em></p></figcaption></figure>

In cases like these, it's better to move the twirl somewhere it's visible, while not affecting the gameplay itself in any way. But if that's not possible *(In this case, for demonstration purposes)*, Position Track events can always be used in order to fix this issue.

<div><figure><img src="/files/LyNwgr6B6RIkX83X5WGr" alt="" width="375"><figcaption><p><em>Twirl moved to the next tile on the track</em></p></figcaption></figure> <figure><img src="/files/1fkRDtifOfDahqRtGRJQ" alt="" width="360"><figcaption><p><em>Position Track events making the twirl be visible without changing the tile it is at</em></p></figcaption></figure></div>

## • On-Beat Rotation

On-Beat Rotation is when the angle turns don't add up to 180° or 360°, which represents the On-Beat of the song, and because of that, the sum of the angles, becomes the On-Beat of the song, despite not being 180° or 360°.

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fipb5NkFjq0eBOIGewqlQ%2Fuploads%2FrEXk3aOtjUGiULuEIhpS%2F2023-06-28%2000-05-04.mp4?alt=media&token=d17156ca-a3a8-4173-88b9-f0ed03a978d1>" %}
*On-Beat Rotation Example*
{% endembed %}

In the first pattern, the angles add up to 360°, avoiding On-Beat Rotation. `90+45+45+90+90=360°`

<figure><img src="/files/V11eMbmnXusjgtCvwb4P" alt=""><figcaption><p><em>Calculation made to find the current rotation of the track after the first pattern</em></p></figcaption></figure>

In the second pattern, the angles add up to -90°, causing On-Beat Rotation. Each time a twirl is used, the current operation is reversed. For example, in the image below, a twirl is used at the 45° turn, thus `-45`, and is used again for the next 45° turn, thus `+45`. `90-45+45-90-90=-90°`

<figure><img src="/files/eau00XyHNOumRgOuC48f" alt=""><figcaption><p><em>Calculation made to find the current rotation of the track after the second pattern</em></p></figcaption></figure>

This can be used well if you know what you can with it, but **to avoid it, the easiest way would be to only use twirls when there's an angle distance of 90°, 180°, 270° and 360° from the starting angle**. Of course, On-Beat Rotation is not always guaranteed to happen when twirls are used on non-cardinal angles, but beware of where you place them, so it doesn't happen unintentionally.
