Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Rotation Problems on an attachment

Vilkacis Mason
Registered User
Join date: 30 Aug 2005
Posts: 49
03-24-2006 04:15
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.
Krashnburn Hillquit
Registered User
Join date: 14 Feb 2006
Posts: 15
03-24-2006 05:13
the problem is probably that you are not acounting for avatar rotation, you are setting absolute rotations instead of adjusting the current one, or setting absolute rotations, adjusting for current avatar rotation.