Skip to content

llRotateTexture

void llRotateTexture(float Radians, integer Face)

Sets the texture rotation for the specified Face to angle Radians.

If Face is ALL_SIDES, rotates the texture of all sides.

Parameters
Radians (float)
Face (integer)
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.

  • [llGetTextureRot] - Gets the texture rotation
  • [llSetTextureAnim] - Animates the texture