Has this function ALWAYS returned a "zero" rotation value for attachments? I thought I had this working some time ago but I can;t make it work now.
How do you use llSetPrimitiveParams in a child prim of an attachment to set a known rotation (one read and stored previously with llGetLocalRot())?
Doing an llSetRot(llGetLocalRot()) works (prim should not move) but I need to use llSetPrimitiveParams instead to move and position at the same time. In a NON-attachment the following works:
llSetPrimitiveParams([PRIM_POSITION, llGetLocalPos(), PRIM_ROTATION, llGetLocalRot()/llGetRootRotation()]);
However when attached, llGetRootRotation returns a zero rotation and the prim rotates oddly when it should stay put.
What can you use as a reference instead of llGetRootRotation or is it just /impossible/ to use llSetPrimitiveParams to rotate a child prim in an attachment to a previously read and stored value?
I could have sworn this worked some time ago in attachements an non-attachments though...
Again, in short I want to do the following:
Instead if this:
llSetPos(llGetLocalPos());
llSetLocalRot(llGetLocalRot();
I want to do this:
llSetPrimitiveParams([PRIM_POSITION, llGetLocalPos(), PRIM_ROTATION, llGetLocalRot()/llGetRootRotation()]);
in an attachment and have it work. The first methods works but with delays, the second works only if not attached.

