Difference between revisions of "LlRotateTexture"

From Second Life Wiki
Jump to navigation Jump to search
m (updated lsl tags)
Line 3: Line 3:
|func_id=56|func_sleep=0.2|func_energy=10.0
|func_id=56|func_sleep=0.2|func_energy=10.0
|func=llRotateTexture
|func=llRotateTexture
|p1_type=float|p1_name=rotation|p1_desc=angle in radians
|p1_type=float|p1_name=rotation_amount|p1_desc=angle in radians
|p2_type=integer|p2_name=face
|p2_type=integer|p2_name=face
|func_footnote
|func_footnote

Revision as of 10:13, 21 November 2009

Summary

Function: llRotateTexture( float rotation_amount, integer face );

Sets the texture rotation for the chosen face

• float rotation_amount 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.
All Issues ~ Search JIRA for related Bugs

Examples

<lsl> default {

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

}

</lsl>

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

Deep Notes

Search JIRA for related Issues

Signature

function void llRotateTexture( float rotation_amount, integer face );