# rotateEnvironmentMap

Rotates the HDRI environment map.

#### Signature

```typescript
rotateEnvironmentMap(degrees: number): Promise<void>
```

#### Parameters

| Parameter | Type   | Required | Description               |
| --------- | ------ | -------- | ------------------------- |
| degrees   | number | Yes      | Rotation angle in degrees |

#### Returns

`Promise<void>`

#### Usage

```javascript
// Rotate 90 degrees
await api.rotateEnvironmentMap(90);

// Rotate 180 degrees
await api.rotateEnvironmentMap(180);
```

#### Notes

* Affects the lighting and reflections in the scene
* Value is absolute rotation, not relative


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.vectary.com/api/model-api/api-reference/rotateenvironmentmap.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
