I am having problems using llSetPrimitiveParams(), specifically in rotation an object one I attach it to an avatar. I have an object attached to my chest, and I want specific prims to move to a specific place when I give the command. Specifically, my chest cavity is opening and closing.
I don't understand how rotating in LSL operates at all, so I'm ignoring regular vectors entirely. I wrote a script that converts a llGetRot() into a string and then says it. I then copied the 'Euler' paramaters directly for each mode, and pasted them into the llSetPrimitiveParams().
The result works fine, on the ground. But the moment I attach it to my avatar, it behaves wildly and will not follow the rotation properly. Even if I get the 'Euler' parameters while the object is attached, and then paste them as is appropriate, they do not work.
What am I doing wrong? Would specifics help? I cannot figure out rotation code.