Difference between revisions of "Template:LSLRotGetSet"

From Second Life Wiki
Jump to: navigation, search
(updated for llSetRot child prim bug)
Line 1: Line 1:
{| border="1" cellpadding=5 cellspacing=0
+
{{{!}} border="1" cellpadding=5 cellspacing=0
|+ Getting and setting {{LSLG|rotation|rotations}} of prims
+
{{!}}+ Getting and setting [[rotation|rotations]] of prims
|-
+
{{!}}-{{Hl2}}
!Function!!Alone or Root!!Link Member!!Attachment!!Attachment Linked Member
+
!Function
|-
+
!Alone or Root
|{{LSLG|llGetRot}}<br/>{{LSLG|llGetPrimitiveParams}}||global rotation of prim||global rotation of prim||global rotation of avatar||global rotation of avatar * global rotation of prim (''Not Useful'')
+
!Link Member
|-
+
!Attachment
|{{LSLG|llGetLocalRot}}||global rotation of prim||rotation of prim relative to root prim||global rotation of avatar||rotation of prim relative to attachment root prim
+
!Attachment Linked Member
|-
+
{{!}}-
|{{LSLG|llGetRootRotation}}||global rotation of prim||global rotation of root prim||global rotation of avatar||global rotation of avatar
+
{{!!}}[[llGetRot]]<br/>[[llGetPrimitiveParams]]
|-
+
{{!!}}global rotation of prim
|{{LSLG|llSetRot}}*<br/>{{LSLG|llSetPrimitiveParams}}*||set global rotation||complicated, see [[llSetRot]]||set rotation relative to avatar||set rotation to root global rotation * new_rot.
+
{{!!}}global rotation of prim
|-
+
{{!!}}global rotation of avatar
|{{LSLG|llSetLocalRot}}*||set global rotation||set rotation of prim relative to root prim||set global rotation relative to avatar||set rotation of prim relative to attachment root prim
+
{{!!}}global rotation of avatar * global rotation of prim (''Not Useful'')
|-
+
{{!}}-
|{{LSLG|llTargetOmega}}**||spin linkset around prim center||spin prim around its center||spin linkset around attachment center||spin prim around its center
+
{{!!}}[[llGetLocalRot]]
|}
+
{{!!}}global rotation of prim
 
+
{{!!}}rotation of prim relative to root prim
* {{LSLG|physics|Physical objects}} which are not children in a linkset will not respond to setting rotations
+
{{!!}}rotation of attachment relative to the attach point
**For non-{{LSLG|physics|Physical objects}} llTargetOmega is executed on the client side, providing a simple low lag method to do smooth continuous rotation
+
{{!!}}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]]*<br/>[[llSetPrimitiveParams]]*
 +
{{!!}}set global rotation
 +
{{!!}}complicated, see [[llSetRot]]
 +
{{!!}}set rotation relative to avatar
 +
{{!!}}set rotation to root global rotation * new_rot.
 +
{{!}}-
 +
{{!!}}[[llSetLocalRot]]*
 +
{{!!}}set global rotation
 +
{{!!}}set rotation of prim relative to root prim
 +
{{!!}}set global rotation relative to avatar
 +
{{!!}}set rotation of prim relative to attachment root prim
 +
{{!}}-
 +
{{!!}}[[llTargetOmega]]**
 +
{{!!}}spin linkset around prim center
 +
{{!!}}spin prim around its center
 +
{{!!}}spin linkset around attachment center
 +
{{!!}}spin prim around its center
 +
{{!}}}
 +
<div style="size=75%;">
 +
* [[physics|Physical objects]] which are not children in a linkset will not respond to setting rotations
 +
**For non-[[physics|Physical objects]] [[llTargetOmega]] is executed on the client side, providing a simple low lag method to do smooth continuous rotation
 +
</div>

Revision as of 08:43, 22 July 2007

Getting and setting rotations of prims
Function Alone or Root Link Member Attachment Attachment Linked Member
llGetRot
llGetPrimitiveParams
global rotation of prim global rotation of prim global rotation of avatar global rotation of avatar * global rotation of prim (Not Useful)
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 global rotation of prim global rotation of root prim global rotation of avatar global rotation of avatar
llSetRot*
llSetPrimitiveParams*
set global rotation complicated, see llSetRot set rotation relative to avatar set rotation to root global rotation * new_rot.
llSetLocalRot* set global rotation set rotation of prim relative to root prim set global rotation relative to avatar set rotation of prim relative to attachment root prim
llTargetOmega** spin linkset around prim center spin prim around its center spin linkset around attachment center spin prim around its center
  • Physical objects which are not children in a linkset will not respond to setting rotations