# Rotation Matrix

## Overview

![The Rotation Matrix Node.](https://2523600638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MIspkFTPkuGkv4UgQGs-2530645121%2Fuploads%2Fgit-blob-2d3fe298a820578b309d80b5f239eec9ec1d7234%2Fnode-rotation-matrix.png?alt=media)

The **Rotation Matrix** **Node** receives three angles as inputs and generates a **Matrix4x4** that represents a *rotation* along the X, Y, and Z axes in the received angles.

## Attributes

### Inputs

| Attribute         | Type      | Description                                                                                                                                       |
| ----------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Default Angle X` | **Float** | The angle, in degrees, along the X axis in which the *rotation* will be performed, if no value is provided in the `Angle X in degree` **Socket**. |
| `Default Angle Y` | **Float** | The angle, in degrees, along the Y axis in which the *rotation* will be performed, if no value is provided in the `Angle Y in degree` **Socket**. |
| `Default Angle Z` | **Float** | The angle, in degrees, along the Z axis in which the *rotation* will be performed, if no value is provided in the `Angle Z in degree` **Socket**. |

## Inputs

| Input               | Type      | Description                                                                        |
| ------------------- | --------- | ---------------------------------------------------------------------------------- |
| *Pulse Input* (►)   | **Pulse** | A standard **Input Pulse**, to trigger the execution of the **Node**.              |
| `Angle X in degree` | **Float** | The angle, in degrees, along the X axis in which the *rotation* will be performed. |
| `Angle Y in degree` | **Float** | The angle, in degrees, along the Y axis in which the *rotation* will be performed. |
| `Angle Z in degree` | **Float** | The angle, in degrees, along the Z axis in which the *rotation* will be performed. |

## 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 Matrix`  | **Matrix4x4** | A **Matrix4x4** representing *rotations* along the X, Y, and Z axes in the given angles.                                               |

## External Links

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