Difference between revisions of "Template:LSLRotGetSet"

From Second Life Wiki
Jump to: navigation, search
Line 38: Line 38:
 
{{!!}}set rotation of prim relative to attachment root prim
 
{{!!}}set rotation of prim relative to attachment root prim
 
{{!}}-
 
{{!}}-
{{!!}}[[llTargetOmega]]**
+
{{!!}}[[llTargetOmega]]
 
{{!!}}spin linkset around prim center
 
{{!!}}spin linkset around prim center
 
{{!!}}spin prim around its center
 
{{!!}}spin prim around its center
Line 44: Line 44:
 
{{!!}}spin prim around its center
 
{{!!}}spin prim around its center
 
{{!}}}
 
{{!}}}
<div style="size=75%;">
+
{{{!}} style="padding:0;"
* [[physics|Physical objects]] which are not children in a linkset will not respond to setting rotations
+
{{!}}style="font-size:70%;padding:0;"{{!}}*&nbsp;
**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;"{{!}}[[physics|Physical objects]] which are not children in a linkset will not respond to setting rotations.
</div>
+
{{!}}-
 +
{{!}}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.
 +
{{!}}}

Revision as of 14:30, 28 August 2008

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.
†  For non-Physical objects llTargetOmega is executed on the client side, providing a simple low lag method to do smooth continuous rotation.