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

Syntax

void llRotateTexture( float angle, integer face );

Forced delay: 0.2 seconds. Energy: 10.0.

Parameters

float angle
angle expressed in radians
integer face
face number or ALL_SIDES

If face is ALL_SIDES then the function works on all sides.

Caveats

Examples

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

Notes

This function only sets the absolute orientation of the texture. See llSetTextureAnim for animations.

See also

Functions