LlRotateTexture - Second Life Wiki

LlRotateTexture

From Second Life Wiki

Jump to: navigation, search

Function: llRotateTexture( float rotation, integer face );

56 Function ID
0.2 Delay
10.0 Energy

Sets the texture rotation for the chosen face

• float rotation angle in radians
• integer face face number or ALL_SIDES


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

Caveats

  • 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

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 applies once on the actual orientation of the texture. It is not an animation. See llSetTextureAnim for animations.

See Also

Functions

•  llGetTextureRot Gets the texture rotation
•  llSetTextureAnim Animates the texture