Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- llTargetOmega(<1.0,3.0,0.5>, TWO_PI, 1.0);
- // Read back this prim's current target omega
- list current_omega = llListToList( llGetPrimitiveParams([PRIM_OMEGA]); // should be [PRIM_OMEGA, axis, spinrate, gain]
- vector axis = llList2Vector(current_omega, 1); // Should be <1.0,3.0,0.5>
- float spinrate = llList2Float(current_omega, 2); // Should be TWO_PI
- float gain = llList2Float(current_omega, 3); // Should be 1.0
- // Set a linked prim rotating
- 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