From Second Life Wiki
Template:Needs Translation/LSL/de
Template:Needs Translation/LSL/es
Template:Needs Translation/LSL/el
Template:Needs Translation/LSL/he
Template:Needs Translation/LSL/it
Template:Needs Translation/LSL/ko
Template:Needs Translation/LSL/nl
Template:Needs Translation/LSL/hu
Template:Needs Translation/LSL/no
Template:Needs Translation/LSL/da
Template:Needs Translation/LSL/sv
Template:Needs Translation/LSL/tr
Template:Needs Translation/LSL/pl
Template:Needs Translation/LSL/pt
Template:Needs Translation/LSL/ru
Template:Needs Translation/LSL/uk
Template:Needs Translation/LSL/zh-Hans
Template:Needs Translation/LSL/zh-Hant
/LSL
SetRot
llSetRot
Summary
Function: llSetRot( rotation rot );
Sets the rotation of the prim to 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. The work-around is to divide the rotation by the root rotation.
- If you are trying to set the rotation of a child prim relative to the root prim then divide the local rotation by the root rotation.
- If you are trying to set the rotation of a child prim to a global rotation then you need to divide the global rotation by the root rotation twice.
- It is better to use llSetLocalRot to set the rotation of child prims, even if you are setting it to a global rotation (just multiply by the root rotation in that case).
- There is no easy way to get the roots local rotation of an attached object (other then being told by the root).
- For small rotation changes, there is an update threshold depending on the time duration, between changes. It does not appear to be limited to the 6deg rule any longer.
Important Issues
~
Search JIRA for related Bugs