# Get Rotation

This **Node** has different versions for [**Scenes**](https://docs.incari.com/incari-studio/2023.2/objects-and-types/project-objects/scene) and [**Scene2Ds**](https://docs.incari.com/incari-studio/2023.2/objects-and-types/project-objects/scene2d). Find in the tabs below the documentation for both versions.

{% tabs %}
{% tab title="Scene" %}
**Overview**

![The Get Rotation Node.](https://2561100106-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff6JZovzOqBctA4C1o76u%2Fuploads%2Fgit-blob-7d91147c22eba6cf052e1fdeecd18d630a7999c7%2Fgetrotationupdatedimage.png?alt=media)

**Get Rotation** returns the $$X$$, $$Y$$, and $$Z$$ rotation of an **Object** in a **Scene**.

[**Scope**](https://docs.incari.com/incari-studio/2023.2/overview#scopes): **Scene**, **Function**, **Prefab**.

**Inputs**

| Input             | Type         | Description                                                                         |
| ----------------- | ------------ | ----------------------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse**    | A standard **Input Pulse**, to trigger the execution of the **Node**.               |
| `Object ID`       | **ObjectID** | The ID of the target **Scene Object** whose `Rotation` values one wishes to return. |

**Outputs**

| Output             | Type        | Description                                                                                                                                                    |
| ------------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse**   | A standard **Output Pulse**, to move onto the next **Node** along the **Logic Branch**, once this **Node** has finished its execution.                         |
| `Rotation`         | **Vector3** | A 3-dimensional vector that contains the `Rotation` components measured in Euler angles along the $$X$$, $$Y$$, and $$Z$$ axes of the target **Scene Object**. |
| {% endtab %}       |             |                                                                                                                                                                |

{% tab title="Scene2D" %}
**Overview**

![The Get Rotation Node.](https://2561100106-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff6JZovzOqBctA4C1o76u%2Fuploads%2Fgit-blob-d8a9994a1e39a7fedeb5eb77b458fb26ba4d6480%2Fgetrotationnode2d.png?alt=media)

**Get Rotation** returns the `Rotation` value of an **Object** in a **Scene2D**.

[**Scope**](https://docs.incari.com/incari-studio/2023.2/overview#scopes): **Scene**, **Function**, **Prefab**.

**Inputs**

| Input             | Type         | Description                                                                        |
| ----------------- | ------------ | ---------------------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse**    | A standard **Input Pulse**, to trigger the execution of the **Node**.              |
| `Object ID`       | **ObjectID** | The ID of the target **Scene2D Object** whose `Rotation` value you wish to return. |

**Outputs**

| Output             | Type      | Description                                                                                                                            |
| ------------------ | --------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse** | A standard **Output Pulse**, to move onto the next **Node** along the **Logic Branch**, once this **Node** has finished its execution. |
| `Rotation`         | **Float** | A **Float** that contains the `Rotation` value of the target **Scene2D Object**.                                                       |
| {% endtab %}       |           |                                                                                                                                        |
| {% endtabs %}      |           |                                                                                                                                        |

## See Also

* [**Get Scale**](https://docs.incari.com/incari-studio/2023.2/toolbox/incari/object/get-scale)
* [**Get Position**](https://docs.incari.com/incari-studio/2023.2/toolbox/incari/object/get-position)
* [**Set Rotation**](https://docs.incari.com/incari-studio/2023.2/toolbox/incari/object/set-rotation)

## External Links

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