> For the complete documentation index, see [llms.txt](https://godot-essentials.gitbook.io/addons-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://godot-essentials.gitbook.io/addons-documentation/components/rotator-component.md).

# Rotator Component

Rotates nodes at a constant speed and can change their values dynamically creating interesting rotations.

## Usage

This node can rotate both parent and children nodes so as you'll see in the examples this allow us to create rotations between objects.

### Exported variables

* Rotation degrees per second
* active
* clockwise

The **rotation degrees per second** defines the the speed of rotation, the more angle the faster it will rotate.

The **active** checkbox disable or enable the rotation for this component on nodes that are directly affected by this component

**Clockwise** is the direction of the rotation by default, disable it to achieve a **counterclockwise**

## Basic constant rotation

This is the simplest way to use it and is useful for e.g. rotating fans in environment objects.

<figure><img src="https://1059887051-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWThJkY8CZ3qBkgyzYFBw%2Fuploads%2F6NLzM5tl2pJT378DhmIO%2Frotator_component_basic.gif?alt=media&amp;token=c6d473de-94a3-43f2-90c1-ea4fa022f565" alt="" width="563"><figcaption><p>Basic constant rotation</p></figcaption></figure>

## Orbital rotation

In the previous example if we add another RotatorComponent as child we can create an orbital rotation between the two objects:

<figure><img src="https://1059887051-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWThJkY8CZ3qBkgyzYFBw%2Fuploads%2FtpIFYY0GnCszHf0OtDfI%2Frotator_component_orbital.gif?alt=media&amp;token=e22d42af-4a60-4583-aa62-201883754dda" alt=""><figcaption><p>Orbital rotation</p></figcaption></figure>

## Change the clockwise direction

<figure><img src="https://1059887051-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWThJkY8CZ3qBkgyzYFBw%2Fuploads%2Fh5R2zZbi2ykqxpgFMvwz%2Frotator_component_clockwise.gif?alt=media&amp;token=00da9356-5799-4810-b134-2534ef0f2ca6" alt="" width="563"><figcaption><p>Rotator clockwise direction</p></figcaption></figure>
