I looked around and couldn't find a match to my problem. I say this because I saw a LOT of posts on rotations...
I'm trying to set up a chair which will make the user sit in the right place at the right rotation. I got it to work based on the chair being in one location facing a particular way, but the chairs will be repeated in different positions and rotations. When I applied the script to other chairs, my avatar would sit off-centered, facing the wrong way.
I saw a few posts that show how to offset rotation and it seemed to work until I actually rotated the chair. With all this information, let's see if I can now ask the right question...
Is there a way to set the rotation and the position of the avatar based on the rotation and position of the seat so that it will always "face front" in the direction of the chair, and be be offset to look as if it's actually "sitting on" the chair?
I'm still getting the hang of scripting with LSL, but this is the first time I've had to script in three dimensions, let alone a fourth!