# Set Rotation

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

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

![The Set Rotation Node.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-ff366b35f2c7c84e984208290dd712af94d8a579%2Fsetrotationnode20241.png?alt=media)

**Set Rotation** sets the value of a given **Scene Object's** `Rotation` **Attribute**.

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

**Attributes**

![The Set Rotation Node Attributes.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-69403da2fcd8620e9122a9edfabf361a073a1dfc%2Fsetrotationatts3d.png?alt=media)

| Attribute  | Type        | Description                                                                                                 |
| ---------- | ----------- | ----------------------------------------------------------------------------------------------------------- |
| `Rotation` | **Vector3** | The desired `Rotation` values of the **Scene Object**, if one is not provided in the `Rotation` **Socket**. |

**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` value you wish to set.                                                                      |
| `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**. |

**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. |
| {% endtab %}       |           |                                                                                                                                        |

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

![The Set Rotation Node.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-fce84a8091d7f4423d0f6ad23df485ecd4db9d73%2Fsetrotation2d20241.png?alt=media)

**Set Rotation** sets the value of a given **Scene2D Object's** `Rotation` **Attribute**.

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

**Attributes**

![The Set Rotation Node Attributes.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-9bd85d2c3632a513cfeda15e95aa8790add43d97%2Fsetrotationatts2d.png?alt=media)

| Attribute  | Type      | Description                                                                                                  |
| ---------- | --------- | ------------------------------------------------------------------------------------------------------------ |
| `Rotation` | **Float** | The desired `Rotation` value of the **Scene2D Object**, if one is not provided in the `Rotation` **Socket**. |

**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 set. |
| `Rotation`        | **Float**    | The **Float** value of the target **Scene2D Object's** rotation.                |

**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. |
| {% endtab %}       |           |                                                                                                                                        |
| {% endtabs %}      |           |                                                                                                                                        |

## See Also

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

## External Links

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