llRotateTexture
function
Function syntax
llRotateTexture(float angle,// Rotation angle expressed in radians.integer face// Face number orALL_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.
llRotateTexture(0.0, 0);Examples
Section titled “Examples”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.
See also
Section titled “See also”Functions
Section titled “Functions”llGetTextureRot— Gets the texture rotationllSetTextureAnim— Animates the texture
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.