Difference between revisions of "LSL llSetRot"

From Second Life Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
{{LSLFunctionAll|func_id=61|func_sleep=0.2|func_energy=10.0|func=llSetRot|p1_type=rotation|p1_name=rot|func_footnote=sets the rotation (if the script isnt physical)|return_text|spec|caveats|examples|helpers|related|also|notes}}[[Category:LSL_Functions]][[Category:LSL_Stub]]
{{LSLFunctionAll|func_id=61|func_sleep=0.2|func_energy=10.0|func=llSetRot
|p1_type=rotation|p1_name=rot
|func_desc=Sets the rotation of the prim to '''rot'''.
|return_text|spec
|caveats=*If the prim is attached, then this function offsets the rotation by the avatars rotation.
*If the prim is not the root prim it is offset by the roots local rotation.
**There is no easy way to get the roots local rotation of an attached object.
|examples|helpers|related|also|notes}}[[Category:LSL_Functions]][[Category:LSL_Stub]]

Revision as of 17:38, 28 January 2007

   Outdated templated used

Please change the template from 'LSLFunctionAll' to 'LSL_Function' (just replace 'LSLFunctionAll' with 'LSL_Function', do this after fixing any other erorr messages.

Summary

Function: llSetRot( rotation rot );

Sets the rotation of the prim to rot.

• rotation rot

Caveats

  • This function causes the script to sleep for 0.2 seconds.
  • If the prim is attached, then this function offsets the rotation by the avatars rotation.
  • If the prim is not the root prim it is offset by the roots local rotation.
    • There is no easy way to get the roots local rotation of an attached object.
All Issues ~ Search JIRA for related Bugs

Examples

Deep Notes

Search JIRA for related Issues

Signature

function void llSetRot( rotation rot );