# RotateTo Action

## Overview

![The RotateTo Action Node.](https://3009747178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MIspkFTPkuGkv4UgQGs-1330240639%2Fuploads%2Fgit-blob-af983ffede6e970a91473a765b1d6c95637e606b%2Frotatetoaction.png?alt=media)

The **RotateTo Action Node** rotates an **Animation** to the absolute Euler angles along the X, Y, and Z axes specified in `To` for the `Duration` (in seconds), in either **Attributes** or **Inputs**.

## Attributes

| Attribute        | Type          | Description                                                                                |
| ---------------- | ------------- | ------------------------------------------------------------------------------------------ |
| `To`             | **Vector3**   | The Euler angles along the X, Y, and Z axes to rotate to.                                  |
| `Duration (sec)` | **Float**     | The total time of the **Action**.                                                          |
| `Interpolation`  | **Drop-down** | The `Interpolation` type. Can be Linear, Sine Ease In, Sine Ease Out, or Sine Ease In Out. |

## Inputs

| Input         | Type           | Description                                                           |
| ------------- | -------------- | --------------------------------------------------------------------- |
| `Instance ID` | **InstanceID** | The assigned **Instance** of an **Object**.                           |
| (►) `Start`   | **Pulse**      | A standard **Input Pulse**, to trigger the execution of the **Node**. |
| `Object ID`   | **ObjectID**   | The ID of the target **Object**.                                      |
| `Duration`    | **Float**      | The total time (in seconds).                                          |
| `To`          | **Vector3**    | The Euler angles along the X, Y, and Z axes to rotate to.             |

## Outputs

| Output        | Type           | Description                                                                           |
| ------------- | -------------- | ------------------------------------------------------------------------------------- |
| `Instance ID` | **InstanceID** | The assigned **Instance** of an **Object**.                                           |
| `OnStart` (►) | **Pulse**      | Flows to additional actions following **RotateTo Action** when the **Action** starts. |
| `OnEnd` (►)   | **Pulse**      | Flows to additional actions following **RotateTo Action** when the **Action** stops.  |

## See Also

* [**RotateBy Action**](https://docs.incari.com/incari-studio/2021.1/toolbox/actions/rotatebyaction)
* [**RotateFromTo Action**](https://docs.incari.com/incari-studio/2021.1/toolbox/actions/rotatefromtoaction)

## External Links

* [*Rotation*](https://en.wikipedia.org/wiki/Euler_angles) on Wikipedia
