Advertisement
Gayngel

Untitled

Jan 3rd, 2015
655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. llTargetOmega(<1.0,3.0,0.5>, TWO_PI, 1.0);
  2.  
  3. // Read back this prim's current target omega
  4. list current_omega = llListToList( llGetPrimitiveParams([PRIM_OMEGA]); // should be [PRIM_OMEGA, axis, spinrate, gain]
  5. vector axis = llList2Vector(current_omega, 1); // Should be <1.0,3.0,0.5>
  6. float spinrate = llList2Float(current_omega, 2); // Should be TWO_PI
  7. float gain = llList2Float(current_omega, 3); // Should be 1.0
  8.  
  9. // Set a linked prim rotating
  10. llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_OMEGA, <1.0,3.0,0.5>, TWO_PI, 1.0]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement