# llRotateTexture

*LSL function*

```lsl
void llRotateTexture(float angle, integer face);
```

- `float angle`: Rotation angle expressed in radians.
- `integer face`: Face number or ALL_SIDES.

- Delay: 0.2 s
- Energy: 10

Sets the texture rotation of face to the specified angle (in radians). If face is ALL_SIDES, rotates the texture on all faces.

Sets the rotation of a texture on the chosen **face** to **angle**.

```lsl title="How to use" frame="terminal"
llRotateTexture(0.0, 0);
```

## Examples

<details open>
<summary>Example 1</summary>

```lsl
default
{
    touch_start(integer total_number) {
        // Makes the object's texture rotate a quarter of turn
        llRotateTexture(PI_BY_TWO, ALL_SIDES);
    }
}
```

</details>

## Notes

This function only sets the absolute orientation of the texture. See [llSetTextureAnim](/functions/llSetTextureAnim/) for animations.

## See also

### Functions

- [llGetTextureRot](/functions/llGetTextureRot/) — Gets the texture rotation
- [llSetTextureAnim](/functions/llSetTextureAnim/) — Animates the texture

---

*Source: [LlRotateTexture](https://wiki.secondlife.com/wiki/LlRotateTexture) on the Second Life Wiki. Content from the Second Life Wiki articles LlRotateTexture (revision 1218125, 2025-04-01), Template:LSL Function/face (revision 1175878, 2013-01-06) and Template:LSL Function/angle (revision 1169077, 2012-06-13), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llRotateTexture/
