From Second Life Wiki

Second Life Wiki > LSL Portal > Built-in Functions > LlRotateTexture (Redirected from LSL llRotateTexture)
Jump to: navigation, search



Function: llRotateTexture( float angle, integer face );

Sets the texture rotation of the chosen face to angle.

• 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.


  • This function causes the script to sleep for 0.2 seconds.
  • The function silently fails if its face value indicates a face that does not exist.
All Issues ~ Search JIRA for related Bugs


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


This function applies once on the actual orientation of the texture. It is not an animation. See llSetTextureAnim for animations.

See Also


•  llGetTextureRot Gets the texture rotation
•  llSetTextureAnim Animates the texture

Deep Notes

Search JIRA for related Issues

This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.
Personal tools
In other languages