Skip to content
lsl.devlsl.devLSL Dev

llRotateTexture

function
Function syntax
llRotateTexture(
  1. float angle,// Rotation angle expressed in radians.
  2. integer face// Face number or ALL_SIDES. Values: Faces
);
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.

How to use
llRotateTexture(0.0, 0);
Example 1
default
{
touch_start(integer total_number) {
// Makes the object's texture rotate a quarter of turn
llRotateTexture(PI_BY_TWO, ALL_SIDES);
}
}

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

Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.