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
{{LSL_Function|func_id=61|func_sleep=0.2|func_energy=10.0|func=llSetRot
|p1_type=rotation|p1_name=rot
|p1_type=rotation|p1_name=rot
|func_desc=Sets the rotation of the prim to '''rot'''.
|func_desc=Sets the rotation of the prim to '''rot'''.
|return_text|spec
|return_text|spec
|sort=SetRot
|caveats=*If the prim is attached, then this function offsets the rotation by the avatars rotation.
|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.
*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.
**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]]
|examples|helpers|related|also|notes}}[[Category:LSL_Stub]]

Revision as of 17:39, 28 January 2007

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 );