I have no idea what I am doing wrong but I am obviously failing epically somewere.
I'm trying to use llSetLinkPrimitiveParams() to reposition an avatar sitting on a chair.
llSetLinkPrimitiveParams(USER_PRIM, [
PRIM_POSITION, <A, B, C>,
PRIM_ROTATION, rot
]);
works wonderfully... until I change the direction the chair is facing.
So I use the ever popular
PRIM_ROTATION, rot * llGetLocalRot() / llGetRootRotation()])
Now I'm sitting in a different orientation but I'm still climbing around like an impatient monkey as I change the direction the chair is facing.
I've tried every variation I can think of and I can not find anything that keeps the rotation of the avatar constant when I change the rotation of the chair. What in the wold am I doing wrong?
Thanks so much in advance for attempting to salvage the ragged ends of my sanity.