Difference between revisions of "Template:LSLRotGetSet"

From Second Life Wiki
Jump to: navigation, search
m (enjoy ^_^)
m (Normalized some of the wording so table entries would read more consistently.)
 
(One intermediate revision by one other user not shown)
Line 12: Line 12:
 
{{!}}-
 
{{!}}-
 
{{!!}}[[llGetRot]]<br/>[[llGetPrimitiveParams|llGPP]]:[[PRIM_ROTATION]]<br/>[[llGetObjectDetails]]
 
{{!!}}[[llGetRot]]<br/>[[llGetPrimitiveParams|llGPP]]:[[PRIM_ROTATION]]<br/>[[llGetObjectDetails]]
{{!}} style="background-color:lightgreen;" {{!}}global rotation of prim
+
{{!}} {{yes|global rotation of prim}}
{{!}} style="background-color:lightgreen;" {{!}}global rotation of prim
+
{{!}} {{yes|global rotation of prim}}
{{!}} style="background-color:gold;" {{!}}global rotation of avatar
+
{{!}} {{maybe|global rotation of avatar}}
{{!}} style="background-color:lightcoral;" {{!}}global rotation of avatar * global rotation of prim (''Not Useful'')
+
{{!}} {{no|global rotation of avatar * global rotation of prim (''Not Useful'')}}
 
{{!}}-
 
{{!}}-
 
{{!!}}[[llGetLocalRot]]<br/>[[llGetPrimitiveParams|llGPP]]:[[PRIM_ROT_LOCAL]]
 
{{!!}}[[llGetLocalRot]]<br/>[[llGetPrimitiveParams|llGPP]]:[[PRIM_ROT_LOCAL]]
{{!}} style="background-color:lightgreen;" {{!}}global rotation of prim
+
{{!}} {{yes|global rotation of prim}}
{{!}} style="background-color:lightgreen;" {{!}}rotation of prim relative to root prim
+
{{!}} {{yes|rotation of prim relative to root prim}}
{{!}} style="background-color:lightgreen;" {{!}}rotation of attachment relative to the attach point
+
{{!}} {{yes|rotation of attachment relative to attach point}}
{{!}} style="background-color:lightgreen;" {{!}}rotation of prim relative to attachment root prim
+
{{!}} {{yes|rotation of prim relative to root prim}}
 
{{!}}-
 
{{!}}-
 
{{!!}}[[llGetRootRotation]]
 
{{!!}}[[llGetRootRotation]]
{{!}} style="background-color:lightgreen;" {{!}}global rotation of prim
+
{{!}} {{yes|global rotation of prim}}
{{!}} style="background-color:lightgreen;" {{!}}global rotation of root prim
+
{{!}} {{yes|global rotation of root prim}}
{{!}} style="background-color:gold;" {{!}}global rotation of avatar
+
{{!}} {{maybe|global rotation of avatar}}
{{!}} style="background-color:gold;" {{!}}global rotation of avatar
+
{{!}} {{maybe|global rotation of avatar}}
 
{{!}}-
 
{{!}}-
 
{{!!}}[[llSetRot]]*<br/>[[llSetPrimitiveParams|llSPP]]:[[PRIM_ROTATION]]*
 
{{!!}}[[llSetRot]]*<br/>[[llSetPrimitiveParams|llSPP]]:[[PRIM_ROTATION]]*
{{!}} style="background-color:lightgreen;" {{!}}set global rotation
+
{{!}} {{yes|set global rotation}}
{{!}} style="background-color:lightcoral;" {{!}}complicated, see [[llSetRot]]
+
{{!}} {{no|complicated, see [[llSetRot]]}}
{{!}} style="background-color:lightgreen;" {{!}}set rotation relative to attach point
+
{{!}} {{yes|set rotation relative to attach point}}
{{!}} style="background-color:lightcoral;" {{!}}set rotation to root attachment rotation * new_rot.
+
{{!}} {{no|set rotation to root attachment rotation * new_rot.}}
 
{{!}}-
 
{{!}}-
 
{{!!}}[[llSetLocalRot]]*<br/>[[llSetPrimitiveParams|llSPP]]:[[PRIM_ROT_LOCAL]]*
 
{{!!}}[[llSetLocalRot]]*<br/>[[llSetPrimitiveParams|llSPP]]:[[PRIM_ROT_LOCAL]]*
{{!}} style="background-color:lightgreen;" {{!}}set global rotation
+
{{!}} {{yes|set global rotation}}
{{!}} style="background-color:lightgreen;" {{!}}set rotation of prim relative to root prim
+
{{!}} {{yes|set rotation of prim relative to root prim}}
{{!}} style="background-color:lightgreen;" {{!}}set rotation relative to attach point
+
{{!}} {{yes|set rotation relative to attach point}}
{{!}} style="background-color:lightgreen;" {{!}}set rotation of prim relative to root prim
+
{{!}} {{yes|set rotation of prim relative to root prim}}
 
{{!}}-
 
{{!}}-
 
{{!!}}[[llTargetOmega]]†<br/>{{LSLGC|PrimitiveParams|ll[GS]PP}}:[[PRIM_OMEGA]]
 
{{!!}}[[llTargetOmega]]†<br/>{{LSLGC|PrimitiveParams|ll[GS]PP}}:[[PRIM_OMEGA]]
{{!}} style="background-color:lightgreen;" {{!}}spin linkset around prim's location
+
{{!}} {{yes|spin linkset around prim's location}}
{{!}} style="background-color:gold;" {{!}}spin prim around its location
+
{{!}} {{maybe|spin prim around its location}}
{{!}} style="background-color:lightgreen;" {{!}}spin linkset around attachment location
+
{{!}} {{yes|spin linkset around attach point}}
{{!}} style="background-color:gold;" {{!}}spin prim around its location
+
{{!}} {{maybe|spin prim around its location}}
 
{{!}}}
 
{{!}}}
 
{{{!}} style="padding:0;"
 
{{{!}} style="padding:0;"

Latest revision as of 13:29, 30 December 2015

Getting and setting rotations of prims
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.