Difference between revisions of "Template:LSLRotGetSet"
From Second Life Wiki
m (Normalized some of the wording so table entries would read more consistently.) |
|||
(11 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | { | + | {{{!}} border="1" cellpadding=5 cellspacing=0 |
− | + | {{!}}+ Getting and setting [[rotation|rotations]] of prims | |
− | + | {{!}}-{{Hl2}} | |
− | !Function!! | + | ! rowspan="2" {{!}} Function |
− | + | ! colspan="2" {{!}} Ground (rez'ed) Prims | |
− | + | ! colspan="2" {{!}} {{LSLGC|Attachment|Attached}} Prims | |
− | + | {{!}}-{{Hl2}} | |
− | + | !Root | |
− | + | !Children | |
− | + | !Root | |
− | + | !Children | |
− | + | {{!}}- | |
− | | | + | {{!!}}[[llGetRot]]<br/>[[llGetPrimitiveParams|llGPP]]:[[PRIM_ROTATION]]<br/>[[llGetObjectDetails]] |
− | + | {{!}} {{yes|global rotation of prim}} | |
− | + | {{!}} {{yes|global rotation of prim}} | |
− | + | {{!}} {{maybe|global rotation of avatar}} | |
− | |} | + | {{!}} {{no|global rotation of avatar * global rotation of prim (''Not Useful'')}} |
+ | {{!}}- | ||
+ | {{!!}}[[llGetLocalRot]]<br/>[[llGetPrimitiveParams|llGPP]]:[[PRIM_ROT_LOCAL]] | ||
+ | {{!}} {{yes|global rotation of prim}} | ||
+ | {{!}} {{yes|rotation of prim relative to root prim}} | ||
+ | {{!}} {{yes|rotation of attachment relative to attach point}} | ||
+ | {{!}} {{yes|rotation of prim relative to root prim}} | ||
+ | {{!}}- | ||
+ | {{!!}}[[llGetRootRotation]] | ||
+ | {{!}} {{yes|global rotation of prim}} | ||
+ | {{!}} {{yes|global rotation of root prim}} | ||
+ | {{!}} {{maybe|global rotation of avatar}} | ||
+ | {{!}} {{maybe|global rotation of avatar}} | ||
+ | {{!}}- | ||
+ | {{!!}}[[llSetRot]]*<br/>[[llSetPrimitiveParams|llSPP]]:[[PRIM_ROTATION]]* | ||
+ | {{!}} {{yes|set global rotation}} | ||
+ | {{!}} {{no|complicated, see [[llSetRot]]}} | ||
+ | {{!}} {{yes|set rotation relative to attach point}} | ||
+ | {{!}} {{no|set rotation to root attachment rotation * new_rot.}} | ||
+ | {{!}}- | ||
+ | {{!!}}[[llSetLocalRot]]*<br/>[[llSetPrimitiveParams|llSPP]]:[[PRIM_ROT_LOCAL]]* | ||
+ | {{!}} {{yes|set global rotation}} | ||
+ | {{!}} {{yes|set rotation of prim relative to root prim}} | ||
+ | {{!}} {{yes|set rotation relative to attach point}} | ||
+ | {{!}} {{yes|set rotation of prim relative to root prim}} | ||
+ | {{!}}- | ||
+ | {{!!}}[[llTargetOmega]]†<br/>{{LSLGC|PrimitiveParams|ll[GS]PP}}:[[PRIM_OMEGA]] | ||
+ | {{!}} {{yes|spin linkset around prim's location}} | ||
+ | {{!}} {{maybe|spin prim around its location}} | ||
+ | {{!}} {{yes|spin linkset around attach point}} | ||
+ | {{!}} {{maybe|spin prim around its location}} | ||
+ | {{!}}} | ||
+ | {{{!}} style="padding:0;" | ||
+ | {{!}}- | ||
+ | {{!}}style="font-size:70%;padding:0;"{{!}}* | ||
+ | {{!}}style="font-size:70%;padding:0;"{{!}}[[physics|Physical objects]] which are not children in a linkset will not respond to setting rotations. | ||
+ | {{!}}- | ||
+ | {{!}}valign="top" style="padding:0;"{{!}}† | ||
+ | {{!}}style="font-size:70%;padding:0;"{{!}}For non-[[physics|Physical objects]] [[llTargetOmega]] is executed on the client side, providing a simple low lag method to do smooth continuous rotation. | ||
+ | {{!}}-<!-- | ||
+ | {{!}}valign="top" style="padding:0;"{{!}}‡ | ||
+ | {{!}}style="font-size:70%;padding:0;"{{!}}When used with [[llGetLinkPrimitiveParams]], [[PRIM_ROT_LOCAL]] returns the target link's rotation as described in the table.--> | ||
+ | {{!}}} |
Latest revision as of 12:29, 30 December 2015
Function | Ground (rez'ed) Prims | Attached Prims | ||
---|---|---|---|---|
Root | Children | Root | Children | |
llGetRot llGPP:PRIM_ROTATION llGetObjectDetails |
global rotation of prim | global rotation of prim | global rotation of avatar | global rotation of avatar * global rotation of prim (Not Useful) |
llGetLocalRot llGPP:PRIM_ROT_LOCAL |
global rotation of prim | rotation of prim relative to root prim | rotation of attachment relative to attach point | rotation of prim relative to root prim |
llGetRootRotation | global rotation of prim | global rotation of root prim | global rotation of avatar | global rotation of avatar |
llSetRot* llSPP:PRIM_ROTATION* |
set global rotation | complicated, see llSetRot | set rotation relative to attach point | set rotation to root attachment rotation * new_rot. |
llSetLocalRot* llSPP:PRIM_ROT_LOCAL* |
set global rotation | set rotation of prim relative to root prim | set rotation relative to attach point | set rotation of prim relative to root prim |
llTargetOmega† ll[GS]PP:PRIM_OMEGA |
spin linkset around prim's location | spin prim around its location | spin linkset around attach point | spin prim around its location |
* | Physical objects which are not children in a linkset will not respond to setting rotations. |
† | For non-Physical objects llTargetOmega is executed on the client side, providing a simple low lag method to do smooth continuous rotation. |