> For the complete documentation index, see [llms.txt](https://docs.siminsights.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.siminsights.com/hyperskill-studio-authoring/state-machine-reference/actions/rotate.md).

# Rotate

Rotate turns an object to a set rotation over a set time. A detailed explanation of controls and interface functions is described in the section [State Machine Builder User Interface](https://docs.google.com/document/d/1-o5qSv4zTkzj7YSmRTkV4zezFq7lwU00FyTy0kw1l1U/edit#bookmark=id.6vu41emx3478).

1. Within the edit Simulation section of the HyperSkill Desktop application, navigate to the State Machine tab.
2. Click on the desired state and, from the dropdown in either the entry or exit actions, select the type Rotate.
3. Press the + button to add the action to the action list.

<figure><img src="https://2704613365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxYaaXoZ4YGbVdAnAhdcE%2Fuploads%2FLZSgugGmf0wPamdQsams%2F105.png?alt=media&#x26;token=4771bfdd-61e5-44b5-8fe3-6c667939bb76" alt=""><figcaption></figcaption></figure>

4. Select the entity of the object you wish to rotate with the Select Entity dropdown.
5. Enter the x, y and z values of the rotation you want the object to end at. The rotation is applied globally.
6. Use the Speed field to set the amount of time the object takes to go from its current rotation to the end rotation. This value must be greater than or equal to 0.

**Note:** If the object is not Kinematic, it will likely behave erratically as other forces, such as gravity or collisions, act on it.

To move an object instead, see [Translate](/hyperskill-studio-authoring/state-machine-reference/actions/translate.md).
