# On Rotation Change

## Overview

![The On Rotation Change Node.](https://926825830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKQhJdUBr7YQzfIwmpAZ9%2Fuploads%2Fgit-blob-43badc49361b90b8c06c30da2112d686f205453a%2Fonrotationchangeupdatedimage.png?alt=media)

**On Rotation Change** is an **Event Listener** **Node** used for executing a **Logic Branch** when the **Rotation** of an **Object** changes.

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

## Attributes

![The On Rotation Change Node Attributes.](https://926825830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKQhJdUBr7YQzfIwmpAZ9%2Fuploads%2Fgit-blob-064d738fb586fdf77d818a47880bfab616e6f526%2Fonrotationchangeattributes.png?alt=media)

| Attribute | Type         | Description                                                                                                                           |
| --------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------- |
| `Object`  | **ObjectID** | The **Object** in which a change of **Rotation** triggers the **Logic Branch**, if none is given in the `Object ID` **Input Socket**. |

## Inputs

| Input           | Type         | Description                                                                        |
| --------------- | ------------ | ---------------------------------------------------------------------------------- |
| `Object ID`     | **ObjectID** | The **Object** in which a change of **Rotation** triggers the **Logic Branch**.    |
| `Subscribe` (►) | **Pulse**    | An **Input Pulse** that needs to be triggered to start listening to the **Event**. |

## 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**  | The new **Rotation** of the **Object**.                                                                                                |
| `Object ID`        | **ObjectID** | The **Object** received as **Input**.                                                                                                  |

## See Also

* [**Events**](https://docs.incari.com/incari-studio/2022.1/toolbox/events)
* [**Object**](https://docs.incari.com/incari-studio/2022.1/toolbox/events/object)
* [**Rotation**](https://docs.incari.com/incari-studio/2022.1/objects-and-types/attributes/common-attributes/transformation#rotation)
