> For the complete documentation index, see [llms.txt](https://docs.incari.com/incari-studio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.incari.com/incari-studio/2022.1/toolbox/actions/rotatefromtoaction.md).

# RotateFromTo Action

## Overview

![The RotateFromTo Action Node.](/files/MDV4u3hPjrypeBLoVudj)

The **RotateFromTo Action Node** continuously rotates an **Object** from the *Euler angles* specified in `From` to those specified in `To` for a given period of time, thus creating an **Animation**.

[**Scope**](/incari-studio/2022.1/toolbox/overview.md#scopes): **Scene**, **Function**, **Prefab**.

## Attributes

![The RotateFromTo Action Node Attributes.](/files/0V1wVsPzNVQCAHSS00WK)

| Attribute        | Type          | Description                                                                                                                                                                                                                                                                                                                                     |
| ---------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `From`           | **Vector3**   | The *Euler angles* along the X, Y, and Z axes to rotate from, if none are received in the `From` **Input Socket**.                                                                                                                                                                                                                              |
| `To`             | **Vector3**   | The *Euler angles* along the X, Y, and Z axes to rotate to, if none are received in the `To` **Input Socket**.                                                                                                                                                                                                                                  |
| `Duration (sec)` | **Float**     | The total time of the **Action**, if none is received in the `Duration` **Input Socket**.                                                                                                                                                                                                                                                       |
| `Interpolation`  | **Drop-down** | The `Interpolation` method to use for calculating the intermediate values of the *Euler angles*. It can be [*Linear*](https://en.wikipedia.org/wiki/Linear_interpolation), [*Sine Ease In*](https://easings.net/#easeInSine), [*Sine Ease In Out*](https://easings.net/#easeInOutSine), or [*Sine Ease Out*](https://easings.net/#easeOutSine). |

## Inputs

| Input         | Type           | Description                                                                                                                                                                        |
| ------------- | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Instance ID` | **InstanceID** | The assigned [**Instance ID**](/incari-studio/2022.1/toolbox/actions.md#instance-id) of the **Action**. If nothing is received, it automatically assigns 0 as the **Instance ID**. |
| (►) `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).                                                                                                                                                       |
| `From`        | **Vector3**    | The *Euler angles* along the X, Y, and Z axes to rotate from.                                                                                                                      |
| `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 ID**](/incari-studio/2022.1/toolbox/actions.md#instance-id) of the **Action**. |
| `OnStart` (►) | **Pulse**      | Flows to the next **Node** following **RotateFromTo Action** when the **Action** starts.                |
| `OnEnd` (►)   | **Pulse**      | Flows to the next **Node** following **RotateFromTo Action** when the **Action** stops.                 |

## See Also

* [**RotateTo Action**](/incari-studio/2022.1/toolbox/actions/rotatetoaction.md)
* [**RotateBy Action**](/incari-studio/2022.1/toolbox/actions/rotatebyaction.md)

## External Links

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