Difference between revisions of "Template:LSLRotGetSet"

From Second Life Wiki
Jump to: navigation, search
m
Line 2: Line 2:
 
{{!}}+ Getting and setting [[rotation|rotations]] of prims
 
{{!}}+ Getting and setting [[rotation|rotations]] of prims
 
{{!}}-{{Hl2}}
 
{{!}}-{{Hl2}}
!Function
+
! rowspan="2" {{!}} Function
!Alone or Root
+
! colspan="2" {{!}} Ground (rez'ed) Prims
!Link Member
+
! colspan="2" {{!}} {{LSLGC|Attachment|Attached}} Prims
!Attachment
+
{{!}}-{{Hl2}}
!Attachment Linked Member
+
!Root
 +
!Children
 +
!Root
 +
!Children
 
{{!}}-
 
{{!}}-
{{!!}}[[llGetRot]]<br/>[[llGetPrimitiveParams]]
+
{{!!}}[[llGetRot]]<br/>[[llGetPrimitiveParams|llGPP]]:[[PRIM_ROTATION]]<br/>[[llGetObjectDetails]]
{{!!}}global rotation of prim
+
{{!}} style="background-color:lightgreen;" {{!}}global rotation of prim
{{!!}}global rotation of prim
+
{{!}} style="background-color:lightgreen;" {{!}}global rotation of prim
{{!!}}global rotation of avatar
+
{{!}} style="background-color:gold;" {{!}}global rotation of avatar
{{!!}}global rotation of avatar * global rotation of prim (''Not Useful'')
+
{{!}} style="background-color:lightcoral;" {{!}}global rotation of avatar * global rotation of prim (''Not Useful'')
 
{{!}}-
 
{{!}}-
{{!!}}[[llGetObjectDetails]]
+
{{!!}}[[llGetLocalRot]]<br/>[[llGetPrimitiveParams|llGPP]]:[[PRIM_ROT_LOCAL]]
{{!!}}global rotation of prim
+
{{!}} style="background-color:lightgreen;" {{!}}global rotation of prim
{{!!}}global rotation of prim
+
{{!}} style="background-color:lightgreen;" {{!}}rotation of prim relative to root prim
{{!!}}?
+
{{!}} style="background-color:lightgreen;" {{!}}rotation of attachment relative to the attach point
{{!!}}?
+
{{!}} style="background-color:lightgreen;" {{!}}rotation of prim relative to attachment root prim
{{!}}-
+
{{!!}}[[llGetLocalRot]]
+
{{!!}}global rotation of prim
+
{{!!}}rotation of prim relative to root prim
+
{{!!}}rotation of attachment relative to the attach point
+
{{!!}}rotation of prim relative to attachment root prim
+
 
{{!}}-
 
{{!}}-
 
{{!!}}[[llGetRootRotation]]
 
{{!!}}[[llGetRootRotation]]
{{!!}}global rotation of prim
+
{{!}} style="background-color:lightgreen;" {{!}}global rotation of prim
{{!!}}global rotation of root prim
+
{{!}} style="background-color:lightgreen;" {{!}}global rotation of root prim
{{!!}}global rotation of avatar
+
{{!}} style="background-color:gold;" {{!}}global rotation of avatar
{{!!}}global rotation of avatar
+
{{!}} style="background-color:gold;" {{!}}global rotation of avatar
 
{{!}}-
 
{{!}}-
{{!!}}[[llSetRot]]*<br/>[[llSetPrimitiveParams]]*
+
{{!!}}[[llSetRot]]*<br/>[[llSetPrimitiveParams|llSPP]]:[[PRIM_ROTATION]]*
{{!!}}set global rotation
+
{{!}} style="background-color:lightgreen;" {{!}}set global rotation
{{!!}}complicated, see [[llSetRot]]
+
{{!}} style="background-color:lightcoral;" {{!}}complicated, see [[llSetRot]]
{{!!}}set rotation relative to avatar
+
{{!}} style="background-color:lightgreen;" {{!}}set rotation relative to attach point
{{!!}}set rotation to root global rotation * new_rot.
+
{{!}} style="background-color:lightcoral;" {{!}}set rotation to root attachment rotation * new_rot.
 
{{!}}-
 
{{!}}-
{{!!}}[[llSetLocalRot]]*
+
{{!!}}[[llSetLocalRot]]*<br/>[[llSetPrimitiveParams|llSPP]]:[[PRIM_ROT_LOCAL]]*
{{!!}}set global rotation
+
{{!}} style="background-color:lightgreen;" {{!}}set global rotation
{{!!}}set rotation of prim relative to root prim
+
{{!}} style="background-color:lightgreen;" {{!}}set rotation of prim relative to root prim
{{!!}}set global rotation relative to avatar
+
{{!}} style="background-color:lightgreen;" {{!}}set rotation relative to attach point
{{!!}}set rotation of prim relative to attachment root prim
+
{{!}} style="background-color:lightgreen;" {{!}}set rotation of prim relative to root prim
 
{{!}}-
 
{{!}}-
 
{{!!}}[[llTargetOmega]]†
 
{{!!}}[[llTargetOmega]]†
{{!!}}spin linkset around prim's location
+
{{!}} style="background-color:lightgreen;" {{!}}spin linkset around prim's location
{{!!}}spin prim around its location
+
{{!}} style="background-color:gold;" {{!}}spin prim around its location
{{!!}}spin linkset around attachment location
+
{{!}} style="background-color:lightgreen;" {{!}}spin linkset around attachment location
{{!!}}spin prim around its location
+
{{!}} style="background-color:gold;" {{!}}spin prim around its location
 
{{!}}}
 
{{!}}}
 
{{{!}} style="padding:0;"
 
{{{!}} style="padding:0;"
 +
{{!}}-
 
{{!}}style="font-size:70%;padding:0;"{{!}}*&nbsp;
 
{{!}}style="font-size:70%;padding:0;"{{!}}*&nbsp;
 
{{!}}style="font-size:70%;padding:0;"{{!}}[[physics|Physical objects]] which are not children in a linkset will not respond to setting rotations.
 
{{!}}style="font-size:70%;padding:0;"{{!}}[[physics|Physical objects]] which are not children in a linkset will not respond to setting rotations.
Line 56: Line 54:
 
{{!}}valign="top" style="padding:0;"{{!}}†&nbsp;
 
{{!}}valign="top" style="padding:0;"{{!}}†&nbsp;
 
{{!}}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.
 
{{!}}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;"{{!}}‡&nbsp;
 +
{{!}}style="font-size:70%;padding:0;"{{!}}When used with [[llGetLinkPrimitiveParams]], [[PRIM_ROT_LOCAL]] returns the target link's rotation as described in the table.-->
 
{{!}}}
 
{{!}}}

Revision as of 08:38, 25 October 2010

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 the attach point rotation of prim relative to attachment 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 spin linkset around prim's location spin prim around its location spin linkset around attachment location 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.